-
Notifications
You must be signed in to change notification settings - Fork 27
44 lines (39 loc) · 1019 Bytes
/
docker-pr.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
name: docker-pr
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# This is required by aws-actions.
#
permissions:
id-token: write
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hadolint/[email protected]
with:
recursive: true
ignore: DL3018
build:
runs-on: ubuntu-latest
steps:
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWSROLE }}
aws-region: us-east-1
- uses: aws-actions/amazon-ecr-login@v1
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v3
with:
push: true
context: .
file: Dockerfile
platforms: linux/amd64
tags: ${{ secrets.REGISTRY }}/0x/event-pipeline:${{ github.event.pull_request.head.sha }}