Skip to content

Publish Release

Publish Release #20

Workflow file for this run

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