Skip to content

Commit

Permalink
Eksperiment: Deploy dev basert på tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerga committed Dec 2, 2024
1 parent ee4d48a commit 3553cd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- preprod/**
- dev/**
- exp-**

env:
DOCKER_REGISTRY: ghcr.io
Expand Down Expand Up @@ -48,8 +49,9 @@ jobs:
- name: Determine changes files
run: |
PREVIOUS_TAG=$(git tag --sort version:refname | tail -n 2 | head -n 1)
# Create a comma-separated list of changed files for use in build.gradle.kts
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r -m $GITHUB_SHA | tr '\r\n' ',' | sed -e 's/,$//' | tr -d '"')
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r -m $PREVIOUS_TAG $GITHUB_REF | tr '\r\n' ',' | sed -e 's/,$//' | tr -d '"')
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
- name: Determine projects to deploy
Expand Down

0 comments on commit 3553cd8

Please sign in to comment.