diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-09-21 17:48:34 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-09-21 17:48:34 -0700 |
| commit | 8807295ed8efb4d941285502ff846cb7a490e5cb (patch) | |
| tree | 7ec3ae7fea860bb8d029c59decab2b79370c3465 /.github | |
| parent | ffe737f6506a14b8e05b14a86005399ab2349b4e (diff) | |
| download | seaweedfs-csi-driver-8807295ed8efb4d941285502ff846cb7a490e5cb.tar.xz seaweedfs-csi-driver-8807295ed8efb4d941285502ff846cb7a490e5cb.zip | |
trying to support more platforms
Diffstat (limited to '.github')
| -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 }} |
