diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release.yaml | 45 |
1 files changed, 5 insertions, 40 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 087f461..f86f961 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -58,48 +58,13 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Annotate Docker images - if: ${{ startsWith(github.ref, 'refs/tags/') }} - id: docker_meta - uses: crazy-max/ghaction-docker-meta@v1 - with: - images: ${{ github.repository }} - - - name: Build Docker image - uses: docker/build-push-action@v2 - with: - context: . - file: ./cmd/seaweedfs-csi-driver/Dockerfile - platforms: linux/amd64 - push: false - labels: ${{ steps.docker_meta.outputs.labels }} - tags: ${{ github.repository }}:${{ env.RELEASE_VERSION }} - - - name: Publish Docker image to DockerHub & GitHub Container Registry + - + name: Build uses: docker/build-push-action@v2 with: context: . + push: ${{ github.event_name != 'pull_request' }} file: ./cmd/seaweedfs-csi-driver/Dockerfile - platforms: linux/amd64 - push: ${{ startsWith(github.ref, 'refs/tags/') }} + platforms: linux/amd64, linux/arm, linux/arm64, linux/386 + tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} - tags: | - ${{ github.repository }}:${{ env.RELEASE_VERSION }} - ghcr.io/${{ github.repository }}:${{ env.RELEASE_VERSION }} - - - name: Update DockerHub repo description - if: ${{ startsWith(github.ref, 'refs/tags/') }} - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - repository: ${{ github.repository }} - - - name: Create Release - if: ${{ startsWith(github.ref, 'refs/tags/') }} - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ env.RELEASE_VERSION }} |
