Skip to content

Commit

Permalink
Final workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Sep 30, 2023
1 parent 3294e74 commit 51ba734
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
with:
action_name: checkout
sub_directory: web
- uses: actions/setup-node@v3
- uses: bahmutov/npm-install@v1
- uses: actions/setup-node@v3.8.1
- uses: bahmutov/npm-install@v1.8.35
- run: yarn build
- run: npx keycloakify
env:
Expand Down Expand Up @@ -56,18 +56,18 @@ jobs:
action_name: checkout
sub_directory: web
sha: ${{needs.prepare_release.outputs.target_commit}}
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
- uses: docker/setup-qemu-action@v3.0.0
- uses: docker/setup-buildx-action@v3.0.0
- uses: docker/login-action@v3.0.0
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
#- uses: docker/build-push-action@v2
# with:
# push: true
# context: .
# tags: ${{needs.prepare_release.outputs.new_web_docker_image_tags}}
# build-args: CHART_VERSION=${{needs.prepare_release.outputs.new_chart_version}}
- uses: docker/build-push-action@v5.0.0
with:
push: true
context: .
tags: ${{needs.prepare_release.outputs.new_web_docker_image_tags}}
build-args: CHART_VERSION=${{needs.prepare_release.outputs.new_chart_version}}


release:
Expand All @@ -80,17 +80,16 @@ jobs:
action_name: checkout
sub_directory: web
sha: ${{needs.prepare_release.outputs.target_commit}}
- uses: actions/setup-node@v3
- uses: bahmutov/npm-install@v1
- uses: actions/setup-node@v3.8.1
- uses: bahmutov/npm-install@v1.8.35
- run: yarn build
- run: npx keycloakify
env:
XDG_CACHE_HOME: "/home/runner/.cache/yarn"
KEYCLOAKIFY_THEME_VERSION: ${{needs.prepare_release.outputs.new_chart_version}}
- run: mv build_keycloak/target/*.jar keycloak-theme.jar
- uses: yogeshlonkar/wait-for-jobs@v0
- uses: yogeshlonkar/wait-for-jobs@v0.1.8
with:
gh-token: ${{github.token}}
ignore-skipped: true
jobs: publish_web_docker_image
ttl: 10
Expand All @@ -109,4 +108,5 @@ jobs:
keycloak-theme.jar
onyxia-${{needs.prepare_release.outputs.new_chart_version}}.tgz
env:
GITHUB_TOKEN: ${{secrets.MY_TOKEN}}
# NOTE: We can't use github.token because it would not tirgger the dispatch workflow.
GITHUB_TOKEN: ${{secrets.MY_GITHUB_TOKEN}}
4 changes: 2 additions & 2 deletions .github/workflows/dispatch_on_new_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
notify_paris_sspcloud:
runs-on: ubuntu-latest
steps:
- uses: peter-evans/repository-dispatch@v1
- uses: peter-evans/repository-dispatch@v2.1.2
with:
repository: InseeFrLab/paris-sspcloud
event-type: onyxia_release
client-payload: '{"release_tag_name": "${{github.event.release.tag_name}}"}'
token: ${{secrets.PAT_FOR_REPOSITORY_DISPATCH}}
token: ${{secrets.MY_GITHUB_TOKEN}}

0 comments on commit 51ba734

Please sign in to comment.