diff options
author | Paolo Asperti <[email protected]> | 2022-06-22 18:51:41 +0200 |
---|---|---|
committer | Paolo Asperti <[email protected]> | 2022-06-22 18:51:41 +0200 |
commit | 38dee4794a3299dec035b84b4f0a1c0e8ab1a230 (patch) | |
tree | d850d91b79ca0ca40a7c34e672bcabdb918a013c | |
parent | 2c25ee12e53d970927fcc0a7699e56f6b274993f (diff) | |
download | rustdesk-server-38dee4794a3299dec035b84b4f0a1c0e8ab1a230.tar.gz rustdesk-server-38dee4794a3299dec035b84b4f0a1c0e8ab1a230.zip |
docker images tagged with current git tag + custom
-rw-r--r-- | .github/workflows/build.yaml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index af59187..283002e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,6 +15,7 @@ on: env: CARGO_TERM_COLOR: always + LATEST_TAG: devel jobs: @@ -163,7 +164,9 @@ jobs: context: "./docker" platforms: ${{ matrix.job.docker_platform }} push: true - tags: "${{ secrets.DOCKER_IMAGE }}:latest-${{ matrix.job.name }}" + tags: | + ${{ secrets.DOCKER_IMAGE }}:${{ env.LATEST_TAG }}-${{ matrix.job.name }} + ${{ secrets.DOCKER_IMAGE }}:${{ github.ref_name }}-${{ matrix.job.name }} labels: ${{ steps.meta.outputs.labels }} @@ -185,6 +188,13 @@ jobs: - name: Create and push manifest uses: Noelware/docker-manifest-action@master with: - base-image: ${{ secrets.DOCKER_IMAGE }}:latest - extra-images: ${{ secrets.DOCKER_IMAGE }}:latest-amd64,${{ secrets.DOCKER_IMAGE }}:latest-arm64v8,${{ secrets.DOCKER_IMAGE }}:latest-armv7,${{ secrets.DOCKER_IMAGE }}:latest-i386 + base-image: ${{ secrets.DOCKER_IMAGE }}:${{ github.ref_name }} + extra-images: ${{ secrets.DOCKER_IMAGE }}:${{ github.ref_name }}-amd64,${{ secrets.DOCKER_IMAGE }}:${{ github.ref_name }}-arm64v8,${{ secrets.DOCKER_IMAGE }}:${{ github.ref_name }}-armv7,${{ secrets.DOCKER_IMAGE }}:${{ github.ref_name }}-i386 + push: true + + - name: Create and push manifest + uses: Noelware/docker-manifest-action@master + with: + base-image: ${{ secrets.DOCKER_IMAGE }}:${{ env.LATEST_TAG }} + extra-images: ${{ secrets.DOCKER_IMAGE }}:${{ env.LATEST_TAG }}-amd64,${{ secrets.DOCKER_IMAGE }}:${{ env.LATEST_TAG }}-arm64v8,${{ secrets.DOCKER_IMAGE }}:${{ env.LATEST_TAG }}-armv7,${{ secrets.DOCKER_IMAGE }}:${{ env.LATEST_TAG }}-i386 push: true |