forked from aws-containers/retail-store-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.23 KB
/
release-please.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
id-token: write
name: Release
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
- name: "Get AWS credentials"
if: ${{ steps.release.outputs.release_created }}
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
role-session-name: GithubActionsSession
- name: "Login to Amazon ECR Public"
id: login-ecr-public
if: ${{ steps.release.outputs.release_created }}
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
ref: ${{ steps.release.outputs.tag_name }}
- name: "Publish artifacts"
if: ${{ steps.release.outputs.release_created }}
uses: ./.github/actions/publish-artifacts
with:
tag: ${{ steps.release.outputs.tag_name }}
ecr-repository: ${{ secrets.AWS_ECR_REPOSITORY }}
gh-token: ${{ secrets.GITHUB_TOKEN }}