diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df9190865..1f657652c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,37 +7,7 @@ env: ONLINE_REGISTER: ghcr.io/ksmartdata BUILD_PLATFORM: linux/amd64,linux/arm64 jobs: - 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/setup-buildx-action@v2.0.0 - - name: zoo-entrance - uses: docker/build-push-action@v3.1.1 - 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: +# zoo-entrance: # runs-on: ubuntu-latest # steps: # - name: Git clone mysql-operator repo @@ -54,20 +24,20 @@ jobs: # uses: docker/setup-qemu-action@v2 # - name: Set up Docker Buildx # uses: docker/setup-buildx-action@v2.0.0 -# - name: mysql-operator +# - name: zoo-entrance # uses: docker/build-push-action@v3.1.1 # with: -# context: ./arm64/images/ot-redis -# file: ./arm64/images/ot-redis/Dockerfile-bash +# 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 }}/ot-redis:v6.2.5-alpine -# ${{ env.ONLINE_REGISTER }}/ot-redis:latest +# ${{ 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-operator: +# ot-redis: # runs-on: ubuntu-latest # steps: # - name: Git clone mysql-operator repo @@ -87,13 +57,43 @@ jobs: # - name: mysql-operator # uses: docker/build-push-action@v3.1.1 # with: -# context: ./ -# file: ./arm64/images/ot-redis-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 }}/ot-redis-operator:v0.13.0 -# ${{ env.ONLINE_REGISTER }}/ot-redis-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/setup-buildx-action@v2.0.0 + - name: mysql-operator + uses: docker/build-push-action@v3.1.1 + 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