Skip to content

Commit

Permalink
Opprettt konfig for bidrag-vedtak syntetisk
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Aug 16, 2023
1 parent 9a2f38b commit cada5b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/rollback_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ jobs:
- id: deploy_version
name: Find deploy version
run: |
echo ${github.event_name}
REPO_NAME=${GITHUB_REPOSITORY}
DEPLOY_TAG=${{ github.event.inputs.deploy_tag }}
if [ -z "$INPUT_TAG" ]; then
echo "NULL";
echo $(git tag -l | sort -V | tail -2 | head -1)
echo $(git tag -l | sort -V | tail -2)
DEPLOY_TAG=$(git tag -l | sort -V | tail -2 | head -1)
fi
echo "IMAGE=${{ steps.login.outputs.registry }}/${REPO_NAME}:${DEPLOY_TAG}" >> $GITHUB_OUTPUT
echo "IMAGE=${{ steps.login.outputs.registry }}/$REPO_NAME:$DEPLOY_TAG" >> $GITHUB_OUTPUT
echo "DEPLOY_TAG=$DEPLOY_TAG" >> $GITHUB_OUTPUT
outputs:
image: ${{ steps.deploy_version.outputs.IMAGE }}
Expand Down

0 comments on commit cada5b6

Please sign in to comment.