-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (46 loc) · 1.53 KB
/
dev_builds.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
47
48
49
50
51
52
53
54
55
56
57
name: Dev builds
on:
push:
branches:
- main
- "dev-build/*"
jobs:
setup-image:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Buildx
id: buildx
uses: docker/[email protected]
- name: Show Buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to Open Source ECR
run: make login
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Login to Docker Hub
run: |
docker login \
--username ${{ secrets.DOCKERHUB_LOGIN }} \
--password ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push image to Open Source ECR
run: make build-push-multiplatform
- name: Build and push UBI image to Open Source ECR
run: make build-push-multiplatform \
DOCKERFILE=Dockerfile-ubi \
TAG_SUFFIX=-ubi \
PLATFORMS=linux/amd64,linux/arm64
- name: Build and push image to Docker Hub
run: |-
make build-push-multiplatform \
REPO_URL=sumologic/kubernetes-setup
- name: Build and push UBI image to Docker Hub
run: |-
make build-push-multiplatform \
REPO_URL=sumologic/kubernetes-setup \
DOCKERFILE=Dockerfile-ubi \
TAG_SUFFIX=-ubi \
PLATFORMS=linux/amd64,linux/arm64