diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 830742367..6e907f625 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -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