Merge test
This commit is contained in:
@@ -2,23 +2,24 @@ name: Docker Merge
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths-ignore:
|
||||
- '**/README.md'
|
||||
|
||||
jobs:
|
||||
merge-docker-manifest:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Create manifest images
|
||||
run: docker manifest create ${{ vars.DOCKERHUB_REPO }}:latest --amend ${{ vars.DOCKERHUB_REPO }}:latest-amd64 --amend ${{ vars.DOCKERHUB_REPO }}:latest-arm64
|
||||
|
||||
- name: Push manifest images
|
||||
run: docker manifest push --purge ${{ vars.DOCKERHUB_REPO }}:latest
|
||||
- name: Create and push manifest images
|
||||
uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab
|
||||
with:
|
||||
inputs: ${{ vars.DOCKERHUB_REPO }}:latest
|
||||
tags: ${{ vars.DOCKERHUB_REPO }}:latest-arm64,${{ vars.DOCKERHUB_REPO }}:latest-amd64
|
||||
push: true
|
||||
Reference in New Issue
Block a user