-
Notifications
You must be signed in to change notification settings - Fork 451
38 lines (34 loc) · 1.43 KB
/
publish.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
name: Publish Release
on:
workflow_dispatch:
schedule:
- cron: "20 16 * * *"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build:
name: Publish Images
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Publish
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_CLI_EXPERIMENTAL: enabled
run: |
TAG=$(cat VERSION)
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker pull kubeovn/kube-ovn:$TAG-x86
docker pull kubeovn/kube-ovn:$TAG-arm
docker pull kubeovn/kube-ovn:$TAG-debug-x86
docker pull kubeovn/kube-ovn:$TAG-debug-arm
docker manifest create kubeovn/kube-ovn:$TAG kubeovn/kube-ovn:$TAG-x86 kubeovn/kube-ovn:$TAG-arm
docker manifest create kubeovn/kube-ovn:$TAG-debug kubeovn/kube-ovn:$TAG-debug-x86 kubeovn/kube-ovn:$TAG-debug-arm
docker manifest push kubeovn/kube-ovn:$TAG
docker manifest push kubeovn/kube-ovn:$TAG-debug
docker pull kubeovn/vpc-nat-gateway:$TAG-x86
docker pull kubeovn/vpc-nat-gateway:$TAG-arm
docker manifest create kubeovn/vpc-nat-gateway:$TAG kubeovn/vpc-nat-gateway:$TAG-x86 kubeovn/vpc-nat-gateway:$TAG-arm
docker manifest push kubeovn/vpc-nat-gateway:$TAG