Skip to content

Commit

Permalink
ci(docker): publish worker docker image as a job in publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge committed Jan 31, 2024
1 parent 52b9e3b commit 1be8638
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/docker-ecs-worker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Build & publish ECS/Fargate worker image to ECR

on:
workflow_dispatch:
push:
branches:
- main
workflow_call:
inputs:
ref:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/npm-publish-artillery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ on:
paths:
- packages/artillery/package.json
jobs:
publish-fargate-worker-image:
if: "contains( github.event.head_commit.message, 'ci: release v')"
uses: ./.github/workflows/docker-ecs-worker-image.yml
permissions:
contents: read
id-token: write
secrets:
ECR_WORKER_IMAGE_PUSH_ROLE_ARN: ${{ secrets.ECR_WORKER_IMAGE_PUSH_ROLE_ARN }}

build:
if: "contains(github.event.head_commit.message, 'ci: release v')"
needs: publish-fargate-worker-image
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit 1be8638

Please sign in to comment.