Skip to content

Commit

Permalink
build(docker): fix docker release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Dec 30, 2023
1 parent ff926bf commit 4112303
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: actions/checkout@v4

- name: Log in to the Container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -42,6 +43,7 @@ jobs:
type=semver,pattern=v{{major}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down
38 changes: 24 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,25 @@ on:
required: true

jobs:
update-master-branch:
runs-on: ubuntu-latest
steps:
- uses: everlytic/[email protected]
with:
github_token: ${{ secrets.PAT }}
source_ref: 'develop'
target_branch: 'master'
commit_message_template: '[Automated] Merged {source_ref} into target {target_branch}'

push-version-number:
needs: ['update-master-branch']
runs-on: ubuntu-latest
steps:
- name: Clone develop repository
- name: Checkout master branch
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
ref: 'develop'
ref: 'master'

- name: get-npm-version
id: package-version
Expand All @@ -37,19 +48,8 @@ jobs:
message: 'chore: push version number to v${{ github.event.inputs.version }}'
push: true

update-master-branch:
needs: ['push-version-number']
runs-on: ubuntu-latest
steps:
- uses: everlytic/[email protected]
with:
github_token: ${{ secrets.PAT }}
source_ref: 'develop'
target_branch: 'master'
commit_message_template: '[Automated] Merged {source_ref} into target {target_branch}'

release:
needs: ['update-master-branch']
needs: ['push-version-number']
runs-on: ubuntu-latest
steps:
- name: Fetch repo
Expand Down Expand Up @@ -110,6 +110,16 @@ jobs:
exclude: .htaccess
local-dir: ./dist/

update-develop-branch:
runs-on: ubuntu-latest
steps:
- uses: everlytic/[email protected]
with:
github_token: ${{ secrets.PAT }}
source_ref: 'master'
target_branch: 'develop'
commit_message_template: '[Automated] Merged {source_ref} into target {target_branch}'

update-changelog:
needs: ['release']
name: Generate changelog
Expand Down

0 comments on commit 4112303

Please sign in to comment.