From b9b7337c984d2df333e20e3956794ce1b9a85790 Mon Sep 17 00:00:00 2001 From: Jonathan Sick Date: Thu, 9 May 2024 13:18:37 -0400 Subject: [PATCH] Manually run the Docker build --- .github/workflows/ci.yaml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 424a1c0..f7a91ed 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,10 +19,28 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: lsst-sqre/build-and-push-to-ghcr@v1 - id: build + - name: Define the tag + id: tag + shell: bash + run: echo "tag=`bash scripts/docker-tag.sh`" >> ${GITHUB_OUTPUT} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 with: - image: ${{ github.repository }} - github_token: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - - run: echo Pushed ghcr.io/${{ github.repository }}:${{ steps.build.outputs.tag }} + - name: Build and push + id: build + uses: docker/build-push-action@v5 + with: + context: "." + file: "Dockerfile" + tags: | + ghcr.io/lsst-sqre/kafka-access-operator:${{ steps.tag.outputs.tag }} + cache-from: type=gha + cache-to: type=gha,mode=max