diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-20 22:22:17 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-02-20 22:22:17 -0600 |
| commit | 3796020b4cc91853030b0c662bd0cd42433cccab (patch) | |
| tree | 73dcfc6a06b6126145c993828d9e8eebb0b36e96 /.github/workflows | |
| parent | 089f5fcff0f840a1a827702fa2f7f82fde5cdc2b (diff) | |
| download | slskd-3796020b4cc91853030b0c662bd0cd42433cccab.tar.gz | |
remove arm, add release
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65b030fd..ff8ab461 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,10 +101,11 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Build and push + - name: Build and push Canary + if: !startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v2 with: - platforms: linux/amd64,linux/arm64,linux/arm + platforms: linux/amd64,linux/arm64 push: true build-args: | VERSION=${{ env.VERSION }} @@ -114,6 +115,22 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache + - name: Build and push Release + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v2 + with: + platforms: linux/amd64,linux/arm64 + push: true + build-args: | + VERSION=${{ env.VERSION }} + tags: | + slskd/slskd:${{ env.VERSION }} + slskd/slskd:${{ env.LATEST_TAG }} + slskd/slskd:canary + slskd/slskd:latest + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache + # - name: Build # run: docker build -t slskd/slskd:${{ env.VERSION }} --build-arg VERSION=${{ env.VERSION }} . |
