-
Notifications
You must be signed in to change notification settings - Fork 14
89 lines (75 loc) · 2.58 KB
/
Copy pathrelease-push-docker.yml
File metadata and controls
89 lines (75 loc) · 2.58 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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:
maven-build:
uses: ./.github/workflows/maven-build.yml
secrets: inherit
release-push-docker:
needs: maven-build
runs-on: ubuntu-latest
steps:
- name: print release to be pushed
run: |
echo "building and tagging release: $RELEASE_TAG"
- name: Checkout code
uses: actions/checkout@v7
- name: Download build artifacts
uses: actions/download-artifact@v8
with:
name: build-artifacts-${{ github.sha }}
path: build-output/
- name: Prepare JVM Tars
run: scripts/graalvm-tarballs.sh download
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: set up Docker buildx
uses: docker/setup-buildx-action@v4
- name: login to GHCR
uses: docker/login-action@v4.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: login to Docker hub
uses: docker/login-action@v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: login to Axual Open Source Registry
uses: docker/login-action@v4.6.0
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@v7
with:
context: .
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 }}