Skip to content

chore(main): release 2.10.4 (#1123) #223

chore(main): release 2.10.4 (#1123)

chore(main): release 2.10.4 (#1123) #223

---
# 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@v5
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@v3
- name: Build and Push multi arch devkit image
run: make devkit-image-push-manifest