Skip to content

Commit

Permalink
check values
Browse files Browse the repository at this point in the history
  • Loading branch information
abe garcia committed Nov 7, 2023
1 parent cc1abc0 commit 7d58989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
env:
CONTAINER_REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
RELEASE_VERSION: $(echo ${{ github.ref_name }} | sed 's/v//g' | sed 's/+/-/g')

jobs:
push:
Expand Down Expand Up @@ -34,13 +35,12 @@ jobs:
- name: Set release info
run: |
set -vx
echo "RELEASE_VERSION=$(echo ${{ github.ref_name }} | sed 's/v//g' | sed 's/+/-/g')" >> $GITHUB_ENV
if [ "${{ github.action }}" != "released" ]; then
if ${{ github.event.action }} != 'released'
then
echo "TAGS=${{ env.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE_VERSION }}" >> $GITHUB_ENV
else
echo "TAGS=${{ env.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE_VERSION }},${{ env.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_ENV
fi
${{ toJson(github.event) }}
# - name: Build and push
# id: docker_build
Expand Down

0 comments on commit 7d58989

Please sign in to comment.