# The published Atlas page. Every push to main (every merged pull request, and the data bot's daily commits) builds # the site into a container image and pushes it to Harbor. Argo CD Image Updater watches the `latest` digest and # rolls the deployment in kubefiles (web/threshing-atlas), serving https://threshingatlas.kenschiano.net. # # Secrets: HARBOR_USERNAME and HARBOR_PASSWORD, a Harbor robot account with push access to the `home` project. name: Publish the site (container image) on: push: branches: [main] workflow_dispatch: concurrency: group: image cancel-in-progress: true env: IMAGE: harbor.kenschiano.net/home/threshing-atlas jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Build and push env: HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }} HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }} run: | echo "$HARBOR_PASSWORD" | docker login harbor.kenschiano.net -u "$HARBOR_USERNAME" --password-stdin docker build -t "$IMAGE:latest" -t "$IMAGE:${GITHUB_SHA::8}" . docker push "$IMAGE:latest" docker push "$IMAGE:${GITHUB_SHA::8}" echo "pushed $IMAGE:latest (${GITHUB_SHA::8})"