Skip to content

Commit 6eb0916

Browse files
authored
Merge pull request #37 from MITLibraries/INFRA-629
Adjust workflow command
2 parents 072f4c0 + 4557223 commit 6eb0916

3 files changed

Lines changed: 32 additions & 32 deletions

File tree

.github/workflows/dev-build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
### This is the Terraform-generated dev-build.yml workflow for the ###
22
### docker-matomo-dev app repository. ###
3-
name: Dev Container Build and Deploy
4-
5-
# checkov:skip=CKV2_GHA_1:The shared workflow contains the permissions constraints
6-
# NOTE: The above checkov skip command doesn't actually work and this workflow
7-
# will always show a checkov warning.
3+
name: Dev Build and Push ECR Image
84
on:
95
workflow_dispatch:
106
pull_request:
@@ -13,12 +9,19 @@ on:
139
paths-ignore:
1410
- '.github/**'
1511

12+
permissions:
13+
id-token: write
14+
contents: read
15+
1616
jobs:
17-
deploy:
18-
name: Dev Container Deploy
19-
uses: mitlibraries/.github/.github/workflows/ecr-shared-deploy-dev.yml@INFRA-526
17+
build-push:
18+
name: Dev Build and Push Image
19+
uses: mitlibraries/.github/.github/workflows/ecr-multi-arch-deploy-dev.yml@main
2020
secrets: inherit
2121
with:
2222
AWS_REGION: "us-east-1"
2323
GHA_ROLE: "docker-matomo-gha-dev"
2424
ECR: "docker-matomo-dev"
25+
# DOCKERFILE: # only if the name of the Dockerfile is not "Dockerfile"!
26+
# FUNCTION: "" # only if this is a container-based Lambda function
27+
# PREBUILD: # only if there is some pre-build dependency

.github/workflows/prod-promote.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
### This is the Terraform-generated prod-promote.yml workflow for the ###
22
### docker-matomo-prod repository. ###
33

4-
name: Prod Container Promote
5-
6-
# checkov:skip=CKV2_GHA_1:The shared workflow contains the permissions constraints
7-
# NOTE: The above checkov skip command doesn't actually work and this workflow
8-
# will always show a checkov warning.
9-
4+
name: Prod Promote Image
105
on:
116
workflow_dispatch:
127
release:
138
types: [published]
149

1510
jobs:
16-
deploy:
17-
name: Prod Container Promote
18-
uses: mitlibraries/.github/.github/workflows/ecr-shared-promote-prod.yml@INFRA-526
11+
promote:
12+
name: Prod Promote Container
13+
uses: mitlibraries/.github/.github/workflows/ecr-multi-arch-promote-prod.yml@main
1914
secrets: inherit
2015
with:
2116
AWS_REGION: "us-east-1"
22-
GHA_ROLE_STAGE: docker-matomo-gha-stage
23-
GHA_ROLE_PROD: docker-matomo-gha-prod
24-
ECR_STAGE: "docker-matomo-stage"
17+
GHA_ROLE_STAGE: "docker-matomo-gha-prod"
18+
GHA_ROLE_PROD: "docker-matomo-gha-prod"
19+
ECR_STAGE: "docker-matomo-prod"
2520
ECR_PROD: "docker-matomo-prod"
26-
# FUNCTION: ""
27-
21+
# DEFAULT_BRANCH: # Only if the default branch is not "main"!
22+
# FUNCTION: "" # only if this is a container-based Lambda function
23+

.github/workflows/stage-build.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
### This is the Terraform-generated dev-build.yml workflow for the ###
22
### docker-matomo-stage app repository. ###
3-
name: Stage Container Build and Deploy
4-
5-
# checkov:skip=CKV2_GHA_1:The shared workflow contains the permissions constraints
6-
# NOTE: The above checkov skip command doesn't actually work and this workflow
7-
# will always show a checkov warning.
8-
3+
name: Stage Build and Push ECR Image
94
on:
105
workflow_dispatch:
116
push:
@@ -14,13 +9,19 @@ on:
149
paths-ignore:
1510
- '.github/**'
1611

12+
permissions:
13+
id-token: write
14+
contents: read
15+
1716
jobs:
18-
deploy:
19-
name: Stage Container Deploy
20-
uses: mitlibraries/.github/.github/workflows/ecr-shared-deploy-stage.yml@INFRA-526
17+
build-push:
18+
name: Stage Build and Push Image
19+
uses: mitlibraries/.github/.github/workflows/ecr-multi-arch-deploy-stage.yml@main
2120
secrets: inherit
2221
with:
2322
AWS_REGION: "us-east-1"
2423
GHA_ROLE: "docker-matomo-gha-stage"
2524
ECR: "docker-matomo-stage"
26-
25+
# DOCKERFILE: # only if the name of the Dockerfile is not "Dockerfile"!
26+
# FUNCTION: "" # only if this is a container-based Lambda function
27+
# PREBUILD: # only if there is some pre-build dependency

0 commit comments

Comments
 (0)