Skip to content

Commit

Permalink
Manually run the Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed May 9, 2024
1 parent f6b971c commit b9b7337
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b9b7337

Please sign in to comment.