name: Publish Testing Image on: push: branches: - develop paths-ignore: - "**.md" - "docs/**" workflow_dispatch: concurrency: group: deploy-testing-${{ github.ref }} cancel-in-progress: true permissions: contents: read packages: write env: REGISTRY: ghcr.io jobs: build-and-publish: name: Build and Publish Testing runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v7 - name: Normalize image name id: image_name run: | set -euo pipefail echo "value=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" - name: Set up QEMU uses: docker/setup-qemu-action@v4 with: platforms: arm64 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 - name: Log into registry uses: docker/login-action@v4 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push testing image uses: docker/build-push-action@v7 with: platforms: linux/amd64,linux/arm64 context: . file: docker/Dockerfile push: true tags: | ${{ env.REGISTRY }}/${{ steps.image_name.outputs.value }}:develop ${{ env.REGISTRY }}/${{ steps.image_name.outputs.value }}:develop-omnibus cache-from: type=gha,scope=testing-omnibus cache-to: type=gha,mode=max,scope=testing-omnibus