Skip to content

Commit

Permalink
chore: update manifest docker
Browse files Browse the repository at this point in the history
  • Loading branch information
aldinokemal committed Feb 11, 2024
1 parent 5af09b3 commit 8e072ed
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,27 @@ jobs:
push: true
context: .
file: ./docker/golang.Dockerfile
tags: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest-arm, ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}-arm
tags: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest-arm, ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}-arm

merge-manifest:
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
needs: [build-and-push-amd, build-and-push-arm]
steps:
- name: Login Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Create Latest Manifest
run: |
docker buildx imagetools create -t aldinokemal2104/go-whatsapp-web-multidevice:latest \
aldinokemal2104/go-whatsapp-web-multidevice:latest-amd \
aldinokemal2104/go-whatsapp-web-multidevice:latest-arm
- name: Create Versioned Manifest (${{ github.ref_name }})
run: |
docker buildx imagetools create -t aldinokemal2104/go-whatsapp-web-multidevice:${{ github.ref_name }} \
aldinokemal2104/go-whatsapp-web-multidevice:${{ github.ref_name }}-amd \
aldinokemal2104/go-whatsapp-web-multidevice:${{ github.ref_name }}-arm

0 comments on commit 8e072ed

Please sign in to comment.