Skip to content

Commit

Permalink
ci: fix post release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomvaill authored Oct 29, 2024
1 parent 8f0eebb commit 6a49104
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- develop
paths:
- "packages/**"
- "!packages/**/CHANGELOG.md" # filters out changes made by lerna
- "!packages/**/package.json" # filters out changes made by lerna
- ".github/workflows/build.yml"

defaults:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/post-release-docker-hub-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Post-release Docker Hub alpha
on:
workflow_dispatch:

# Run after every alpha release to NPM
push:
tags:
- v*-alpha.*

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: build and release the latest alpha Docker image
run: |
make -C docker release version-tag
docker image tag "thomvaill/log4brains:$(make -C docker print-utag)" thomvaill/log4brains:alpha
docker image push thomvaill/log4brains:alpha
23 changes: 0 additions & 23 deletions .github/workflows/post-release-docker-hub.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/post-release-e2e-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Post-release E2E alpha
on:
workflow_dispatch:

# Run after every release to NPM
# Run after every alpha release to NPM
push:
tags:
- v*
- v*-alpha.*

jobs:
e2e:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/post-release-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
tags:
- v*
- "!v*-alpha.*"

# Run on every Wednesday to check possible regressions caused by dependency updates
# Like this one: https://github.com/thomvaill/log4brains/issues/27
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"command": {
"version": {
"message": "chore(release): publish %s [skip ci]",
"message": "chore(release): publish %s",
"allowBranch": "develop"
}
}
Expand Down

0 comments on commit 6a49104

Please sign in to comment.