This repository was archived by the owner on Aug 8, 2025. It is now read-only.
Update README.md #505
This file contains hidden or 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: Dev Image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-go@v2 | |
| with: | |
| go-version: 1.18 | |
| - uses: actions/checkout@v2 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v1 | |
| - name: Set up Docker Buildx | |
| uses: docker/[email protected] | |
| with: | |
| driver-opts: image=moby/buildkit:master | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v1 | |
| with: | |
| username: '${{ secrets.DOCKER_USER }}' | |
| password: '${{ secrets.DOCKER_TOKEN }}' | |
| - name: Build and push to DockerHub | |
| uses: docker/build-push-action@v3 | |
| with: | |
| push: true | |
| platforms: | | |
| linux/amd64 | |
| linux/arm64 | |
| file: Dockerfile | |
| tags: goharbor/harbor-operator:dev | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: harbor | |
| password: '${{ secrets.GHCR_TOKEN }}' | |
| - name: Build and push go ghcr | |
| uses: docker/build-push-action@v3 | |
| with: | |
| push: true | |
| platforms: | | |
| linux/amd64 | |
| linux/arm64 | |
| file: Dockerfile | |
| tags: ghcr.io/goharbor/harbor-operator:dev | |
| charts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-go@v2 | |
| with: | |
| go-version: 1.18 | |
| - uses: actions/checkout@v2 | |
| - name: Package charts | |
| run: make helm-generate | |
| - uses: actions/upload-artifact@v2 | |
| with: | |
| name: charts | |
| path: charts/*.tgz |