Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
axsuul committed Nov 8, 2023
1 parent b734508 commit a9cf636
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,21 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Determine release tag
uses: actions/checkout@v2

# Converts GITHUB_REF (e.g. refs/tags/0.0.2) to RELEASE_TAG (e.g. 0.0.2)
run: |
echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build Docker image tags
run: |
echo 'DOCKER_IMAGE_TAGS<<EOF' >> $GITHUB_ENV
echo "ghcr.io/${{ github.repository }}:${{ github.sha }}" >> $GITHUB_ENV
# Add release tag if it exists
if [[ ${{ github.ref }} ]]; then
echo ",ghcr.io/${{ github.repository }}:${{ github.ref }}" >> $GITHUB_ENV
if [[ $RELEASE_TAG }} ]]; then
echo ",ghcr.io/${{ github.repository }}:$RELEASE_TAG" >> $GITHUB_ENV
fi
# Only add latest tag if master branch
Expand Down

0 comments on commit a9cf636

Please sign in to comment.