Skip to content

Commit

Permalink
change secret usage
Browse files Browse the repository at this point in the history
  • Loading branch information
toelke committed May 2, 2024
1 parent 91603f8 commit 4d5da67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
id: image_tags
run: |
echo -n ::set-output name=IMAGE_TAGS::
TAGS=('${{ secrets.REGISTRY_REPOSITORY}}/${{ env.image_name }}:latest')
TAGS=('${{ vars.REGISTRY_REPOSITORY}}/${{ env.image_name }}:latest')
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
TAGS+=("${{ secrets.REGISTRY_REPOSITORY}}/${{ env.image_name }}:$GIT_HASH")
TAGS+=("${{ vars.REGISTRY_REPOSITORY}}/${{ env.image_name }}:$GIT_HASH")
if [[ "${GITHUB_REF}" =~ refs/tags/(.*) ]]; then
TAGS+=("${{ secrets.REGISTRY_REPOSITORY}}/${{ env.image_name }}:${BASH_REMATCH[1]}")
TAGS+=("${{ vars.REGISTRY_REPOSITORY}}/${{ env.image_name }}:${BASH_REMATCH[1]}")
fi
( IFS=$','; echo "${TAGS[*]}" )
- name: Get binary version
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URI }}
registry: ${{ vars.REGISTRY_URI }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and publish image to Quay
Expand Down

0 comments on commit 4d5da67

Please sign in to comment.