fix(image-pull): break outer loop in switch block using label (#182) #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release operator | |
on: | |
push: | |
tags: | |
- '2.[0-9]+.[0-9]+' | |
jobs: | |
release-operator: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Log in to Docker hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Create and push manifests w/ cache | |
uses: docker/build-push-action@v2 | |
if: ${{ vars.ENABLE_DOCKER_CACHE }} | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
file: Dockerfile | |
push: true | |
tags: ${{ vars.DOCKER_PUSH_BASE }}/ob-operator:${{ github.ref_name }} | |
cache-from: type=registry,ref=${{ vars.DOCKER_PUSH_BASE }}/ob-operator:buildcache | |
cache-to: type=registry,ref=${{ vars.DOCKER_PUSH_BASE }}/ob-operator:buildcache,mode=max | |
- name: Create and push manifests w/o cache | |
uses: docker/build-push-action@v2 | |
if: ${{ !vars.ENABLE_DOCKER_CACHE }} | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
file: Dockerfile | |
push: true | |
tags: ${{ vars.DOCKER_PUSH_BASE }}/ob-operator:${{ github.ref_name }} |