Skip to content

Commit

Permalink
try putting things into the env
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Oct 16, 2024
1 parent d76ea20 commit 8265cf7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ jobs:

- name: lowercase repo name to use in following step
env:
REPO: ${{github.repository}}
REPO: ${{ github.repository }}
run: |
echo "REPO=${GITHUB_REPOSITORY@L}>> $GITHUB_ENV"
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/${{ env.REPO }}/query-connector:main, ghcr.io/${{ env.REPO }}/query-connector:latest
tags: |
ghcr.io/${{ env.REPO }}/query-connector:main, ghcr.io/${{ env.REPO }}/query-connector:latest

0 comments on commit 8265cf7

Please sign in to comment.