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 d6f1dea commit 9a2f38b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to dev
on:
push:
branches:
- '**'
- 'test'

env:
GITHUB_USERNAME: x-access-token
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/rollback_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ jobs:
name: Find deploy version
run: |
REPO_NAME=${GITHUB_REPOSITORY}
INPUT_TAG=${{ github.event.inputs.deploy_tag }}
DEPLOY_TAG=${{ github.event.inputs.deploy_tag }}
if [ -z "$INPUT_TAG" ]; then
echo "NULL";
echo "DEPLOY_TAG=$(git tag -l | sort -V | tail -2 | head -1)" >> $GITHUB_OUTPUT
else
echo "Not NULL";
echo "DEPLOY_TAG=$INPUT_TAG" >> $GITHUB_OUTPUT
echo $(git tag -l | sort -V | tail -2 | head -1)
DEPLOY_TAG=$(git tag -l | sort -V | tail -2 | head -1)
fi
echo IMAGE=${{ steps.login.outputs.registry }}/${REPO_NAME}:${DEPLOY_TAG}
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 }}
version: ${{ steps.deploy_version.outputs.DEPLOY_TAG }}
Expand Down

0 comments on commit 9a2f38b

Please sign in to comment.