Skip to content

Commit

Permalink
update some more actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel Stigter committed Feb 6, 2024
1 parent 457858b commit 98b59ba
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions e2e/actions/deploy-katee/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/halfpipe-team/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/halfpipe-team/someImage:${{ env.BUILD_VERSION }}
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/halfpipe-team/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/halfpipe-team/someImage:${{ env.GIT_REVISION }}
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: docker-push:eu.gcr.io/halfpipe-io/halfpipe-team/someImage
token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }}
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
VERY_SECRET: ${{ steps.secrets.outputs.springernature_data_halfpipe-team_another_secret }}
- name: 'Notify slack #ee-re (failure)'
if: failure()
uses: slackapi/slack-github-action@v1.24.0
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: '#ee-re'
slack-message: '${{ job.status }} for pipeline ${{ github.workflow }} - link to the pipeline: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
VERY_SECRET: ${{ steps.secrets.outputs.springernature_data_halfpipe-team_another_secret }}
- name: 'Notify slack #ee-re (failure)'
if: failure()
uses: slackapi/slack-github-action@v1.24.0
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: '#ee-re'
slack-message: '${{ job.status }} for pipeline ${{ github.workflow }} - link to the pipeline: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
Expand Down
10 changes: 5 additions & 5 deletions e2e/actions/docker-push/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.BUILD_VERSION }}
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.GIT_REVISION }}
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: docker-push:eu.gcr.io/halfpipe-io/someImage
token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }}
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/dockerhubusername/someImage:${{ env.GIT_REVISION }} --tag dockerhubusername/someImage:${{ env.BUILD_VERSION }}
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/dockerhubusername/someImage:${{ env.GIT_REVISION }} --tag dockerhubusername/someImage:${{ env.GIT_REVISION }}
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: docker-push:dockerhubusername/someImage
token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }}
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.BUILD_VERSION }}
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.GIT_REVISION }}
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: docker-push:eu.gcr.io/halfpipe-io/someImage
token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }}
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.BUILD_VERSION }}
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.GIT_REVISION }}
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: docker-push:eu.gcr.io/halfpipe-io/someImage
token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }}
Expand Down Expand Up @@ -396,7 +396,7 @@ jobs:
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.BUILD_VERSION }}
docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.GIT_REVISION }}
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: docker-push:eu.gcr.io/halfpipe-io/someImage
token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions e2e/actions/notifications/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ jobs:
entrypoint: /bin/sh
- name: 'Notify slack #failure1 (failure)'
if: failure()
uses: slackapi/slack-github-action@v1.24.0
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: '#failure1'
slack-message: failure msg
env:
SLACK_BOT_TOKEN: ${{ secrets.EE_SLACK_TOKEN }}
- name: 'Notify slack #success1 (success)'
uses: slackapi/slack-github-action@v1.24.0
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: '#success1'
slack-message: success message
env:
SLACK_BOT_TOKEN: ${{ secrets.EE_SLACK_TOKEN }}
- name: 'Notify slack #success2 (success)'
uses: slackapi/slack-github-action@v1.24.0
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: '#success2'
slack-message: success message
Expand Down
2 changes: 1 addition & 1 deletion renderers/actions/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func notify(notifications manifest.Notifications) (steps Steps) {

return Step{
Name: "Notify slack " + channel,
Uses: "slackapi/slack-github-action@v1.24.0",
Uses: "slackapi/slack-github-action@v1.25.0",
With: With{
"channel-id": channel,
"slack-message": text,
Expand Down
2 changes: 1 addition & 1 deletion renderers/actions/docker_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func tags(task manifest.DockerPush) []string {
func repositoryDispatch(eventName string) Step {
return Step{
Name: "Repository dispatch",
Uses: "peter-evans/repository-dispatch@v2",
Uses: "peter-evans/repository-dispatch@v3",
With: With{
"token": githubSecrets.RepositoryDispatchToken,
"event-type": "docker-push:" + eventName,
Expand Down

0 comments on commit 98b59ba

Please sign in to comment.