Skip to content

Commit

Permalink
enable image publishing on merges to main (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 authored Oct 16, 2024
1 parent af54b91 commit 2976c69
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: lowercase repo name to use in following step
env:
REPO: ${{ github.repository }}
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./query-connector
push: true
tags: ghcr.io/${{ github.repository }}/query-connector:main, ghcr.io/${{ github.repository }}/query-connector:latest
tags: |
ghcr.io/${{ env.REPO }}/query-connector:main, ghcr.io/${{ env.REPO }}/query-connector:latest

0 comments on commit 2976c69

Please sign in to comment.