Skip to content

Commit

Permalink
use docker manifest to build final docker volume plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ke authored and costela committed Nov 6, 2023
1 parent e04ced7 commit 5b4be4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- run: make create ARCH=${{ matrix.arch }}
- run: |
make create PLUGIN_NAME=ghcr.io/${{ github.repository_owner }}/${{ github.repository }} PLUGIN_TAG=$RELEASE_VERSION-arm64 ARCH=arm64
make create PLUGIN_NAME=ghcr.io/${{ github.repository_owner }}/${{ github.repository }} PLUGIN_TAG=$RELEASE_VERSION-amd64 ARCH=amd64
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,13 @@ jobs:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- run: make push PLUGIN_NAME=ghcr.io/${{ github.repository_owner }}/${{ github.repository }} PLUGIN_TAG=$RELEASE_VERSION-${{ matrix.arch }} ARCH=${{ matrix.arch }}
- run: |
make create PLUGIN_NAME=ghcr.io/${{ github.repository_owner }}/${{ github.repository }} PLUGIN_TAG=$RELEASE_VERSION-arm64 ARCH=arm64
make create PLUGIN_NAME=ghcr.io/${{ github.repository_owner }}/${{ github.repository }} PLUGIN_TAG=$RELEASE_VERSION-amd64 ARCH=amd64
- run: |
docker manifest create ghcr.io/${{ github.repository_owner }}/${{ github.repository }} \
--amend ghcr.io/${{ github.repository_owner }}/${{ github.repository }}-$RELEASE_VERSION-arm64 \
--amend ghcr.io/${{ github.repository_owner }}/${{ github.repository }}-$RELEASE_VERSION-amd64
docker push ghcr.io/${{ github.repository_owner }}/${{ github.repository }}

0 comments on commit 5b4be4f

Please sign in to comment.