Skip to content

Commit

Permalink
Add --amend option to docker manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoguita authored and glpatcern committed Mar 10, 2023
1 parent d16bad6 commit 7a47a6c
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,26 @@ jobs:
VERSION=${{ github.ref_name }}
BASEIMAGE=${{ matrix.image }}
platforms: ${{ matrix.platform }}
build-multi-architecture:
manifest:
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'cs3org/wopiserver'] }}
needs: release
if: github.event_name != 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
manifest:
- ${{ vars.DOCKERHUB_ORGANIZATION }}/wopiserver:${{ github.ref_name }}
- ${{ vars.DOCKERHUB_ORGANIZATION }}/wopiserver:latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: int128/docker-manifest-create-action@v1
with:
tags: |
${{ vars.DOCKERHUB_ORGANIZATION }}/wopiserver:${{ github.ref_name }}
${{ vars.DOCKERHUB_ORGANIZATION }}/wopiserver:latest
suffixes: |
-amd64
-arm64
- name: Create manifest
run: |
docker manifest create ${{ matrix.manifest }} \
--amend ${{ vars.DOCKERHUB_ORGANIZATION }}/wopiserver:${{ github.ref_name }}-amd64 \
--amend ${{ vars.DOCKERHUB_ORGANIZATION }}/wopiserver:${{ github.ref_name }}-arm64
- name: Push manifest
run: docker manifest push ${{ matrix.manifest }}

0 comments on commit 7a47a6c

Please sign in to comment.