Skip to content

Commit 933ec6e

Browse files
committed
missed job name
1 parent 6092c1a commit 933ec6e

1 file changed

Lines changed: 30 additions & 29 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,36 @@ permissions:
1111
contents: write
1212

1313
jobs:
14-
strategy:
15-
matrix:
16-
env: [dev, prod, test]
17-
name: Build Docker
18-
runs-on: ubuntu-latest
19-
environment: ${{ matrix.env }}
20-
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v6
23-
with:
24-
ref: ${{ github.ref }}
14+
build-deploy:
15+
strategy:
16+
matrix:
17+
env: [dev, prod, test]
18+
name: Build Docker
19+
runs-on: ubuntu-latest
20+
environment: ${{ matrix.env }}
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v6
24+
with:
25+
ref: ${{ github.ref }}
2526

26-
- name: Configure AWS Credentials
27-
uses: aws-actions/configure-aws-credentials@v5
28-
with:
29-
aws-region: 'ap-southeast-2'
30-
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}:role/github-nuj-repository-access
31-
role-session-name: NujPlatformAPISession
27+
- name: Configure AWS Credentials
28+
uses: aws-actions/configure-aws-credentials@v5
29+
with:
30+
aws-region: 'ap-southeast-2'
31+
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}:role/github-nuj-repository-access
32+
role-session-name: NujPlatformAPISession
3233

33-
- name: Login to Amazon ECR
34-
id: login-ecr
35-
uses: aws-actions/amazon-ecr-login@v2
34+
- name: Login to Amazon ECR
35+
id: login-ecr
36+
uses: aws-actions/amazon-ecr-login@v2
3637

37-
- name: Build, tag, and push the image to Amazon ECR
38-
id: build-image
39-
env:
40-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
41-
ECR_REPOSITORY: 'ssh_bastion'
42-
IMAGE_TAG: latest
43-
run: |
44-
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:latest -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ github.sha }} -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ github.ref_name }} .
45-
docker push $ECR_REGISTRY/$ECR_REPOSITORY --all-tags
38+
- name: Build, tag, and push the image to Amazon ECR
39+
id: build-image
40+
env:
41+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
42+
ECR_REPOSITORY: 'ssh_bastion'
43+
IMAGE_TAG: latest
44+
run: |
45+
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:latest -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ github.sha }} -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ github.ref_name }} .
46+
docker push $ECR_REGISTRY/$ECR_REPOSITORY --all-tags

0 commit comments

Comments
 (0)