-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (46 loc) · 1.56 KB
/
build-devkit-image.yaml
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
---
# Devkit image is created and pushed only if it is not already uploaded on docker registry
# Devkit image reference: mesosphere/konvoy-image-builder-devkit:<SHA>-<ARCH>
# Devkit image's tag is created using SHA of the Dockerfile.devkit and other files it dependent on
name: Build and Push Devkit image
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
workflow_call:
push:
branches:
- main
env:
GITHUB_TOKEN: "${{ secrets.MESOSPHERECI_USER_TOKEN }}"
# ensure that only a single job or workflow using the same concurrency group will run at a time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-push-devkit:
runs-on:
- self-hosted
- small
steps:
- name: Checkout konvoy-image-builder repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- name: Login to dockerhub Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.NEXUS_USERNAME }}
password: ${{ secrets.NEXUS_PASSWORD }}
- name: Login to D2iQ's Mirror Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.D2IQ_DOCKER_MIRROR_REGISTRY}}
username: ${{ secrets.NEXUS_USERNAME }}
password: ${{ secrets.NEXUS_PASSWORD }}
- name: Setup buildkit
uses: docker/setup-buildx-action@v2
- name: Build and Push multi arch devkit image
run: make devkit-image-push-manifest