-
Notifications
You must be signed in to change notification settings - Fork 10
71 lines (61 loc) · 2.13 KB
/
release-push-docker.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: build and push release Docker images
on:
workflow_dispatch:
inputs:
tag:
required: true
type: string
description: "The image tag to create"
release:
types: [published]
env:
RELEASE_TAG: ${{ inputs.tag || github.event.release.tag_name }}
jobs:
release-push-docker:
runs-on: ubuntu-latest
steps:
- name: print release to be pushed
run: |
echo "building and tagging release: $RELEASE_TAG"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: set up Docker buildx
uses: docker/setup-buildx-action@v2
- name: login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: login to Docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: login to Axual Open Source Registry
uses: docker/login-action@v2
with:
registry: registry.axual.io
username: ${{ secrets.AXUAL_REGISTRY_USER }}
password: ${{ secrets.AXUAL_REGISTRY_TOKEN }}
- name: build and push KSML Runner
uses: docker/build-push-action@v4
with:
file: Dockerfile
target: ksml
platforms: linux/amd64,linux/arm64
push: true
tags: |
axual/ksml:${{ inputs.tag || github.event.release.tag_name }}
axual/ksml:latest
ghcr.io/axual/ksml:${{ inputs.tag || github.event.release.tag_name }}
ghcr.io/axual/ksml:latest
registry.axual.io/opensource/images/axual/ksml:${{ inputs.tag || github.event.release.tag_name }}
registry.axual.io/opensource/images/axual/ksml:latest
helm-chart-release:
needs: release-push-docker
uses: './.github/workflows/package-push-helm.yml'
secrets: inherit
with:
app-version: ${{ inputs.tag || github.event.release.tag_name }}
version: ${{ inputs.tag || github.event.release.tag_name }}