Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…rator into extra_image
  • Loading branch information
guozhi.li committed Jan 3, 2023
2 parents 52ba366 + b263a4a commit 3619e02
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 35 deletions.
100 changes: 65 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,37 @@ env:
ONLINE_REGISTER: ghcr.io/ksmartdata
BUILD_PLATFORM: linux/amd64,linux/arm64
jobs:
# rabbitmq-cluster-operator:
zoo-entrance:
runs-on: ubuntu-latest
steps:
- name: Git clone mysql-operator repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: zoo-entrance
uses: docker/[email protected]
with:
context: ./arm64/images/zoo-entrance
file: ./arm64/images/zoo-entrance/Dockerfile
github-token: ${{ secrets.GITHUB_TOKEN }}
push: true
platforms: ${{ env.BUILD_PLATFORM }}
tags: |
${{ env.ONLINE_REGISTER }}/zoo-entrance:v1.0.0
${{ env.ONLINE_REGISTER }}/zoo-entrance:latest
cache-from: type=gha
cache-to: type=gha,mode=max
# ot-redis:
# runs-on: ubuntu-latest
# steps:
# - name: Git clone mysql-operator repo
Expand All @@ -27,43 +57,43 @@ jobs:
# - name: mysql-operator
# uses: docker/[email protected]
# with:
# context: ./arm64/images/rabbitmq-cluster-operator
# file: ./arm64/images/rabbitmq-cluster-operator/Dockerfile
# context: ./arm64/images/ot-redis
# file: ./arm64/images/ot-redis/Dockerfile-bash
# github-token: ${{ secrets.GITHUB_TOKEN }}
# push: true
# platforms: ${{ env.BUILD_PLATFORM }}
# tags: |
# ${{ env.ONLINE_REGISTER }}/rabbitmq-cluster-operator:v1.14.0
# ${{ env.ONLINE_REGISTER }}/rabbitmq-cluster-operator:latest
# ${{ env.ONLINE_REGISTER }}/ot-redis:v6.2.5-alpine
# ${{ env.ONLINE_REGISTER }}/ot-redis:latest
# cache-from: type=gha
# cache-to: type=gha,mode=max
# ot-redis-operator:
# runs-on: ubuntu-latest
# steps:
# - name: Git clone mysql-operator repo
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/[email protected]
# - name: mysql-operator
# uses: docker/[email protected]
# with:
# context: ./
# file: ./arm64/images/ot-redis-operator/Dockerfile
# github-token: ${{ secrets.GITHUB_TOKEN }}
# push: true
# platforms: ${{ env.BUILD_PLATFORM }}
# tags: |
# ${{ env.ONLINE_REGISTER }}/ot-redis-operator:v0.13.0
# ${{ env.ONLINE_REGISTER }}/ot-redis-operator:latest
# cache-from: type=gha
# cache-to: type=gha,mode=max
ot-redis-operator:
runs-on: ubuntu-latest
steps:
- name: Git clone mysql-operator repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: mysql-operator
uses: docker/[email protected]
with:
context: ./
file: ./arm64/images/ot-redis-operator/Dockerfile
github-token: ${{ secrets.GITHUB_TOKEN }}
push: true
platforms: ${{ env.BUILD_PLATFORM }}
tags: |
${{ env.ONLINE_REGISTER }}/ot-redis-operator:v0.13.1
${{ env.ONLINE_REGISTER }}/ot-redis-operator:latest
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 2 additions & 0 deletions arm64/images/zoo-entrance/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM --platform=$TARGETPLATFORM ghcr.io/scholzj/zoo-entrance:latest as builder

0 comments on commit 3619e02

Please sign in to comment.