Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
htilly authored Sep 6, 2024
1 parent 7345450 commit cfcfa10
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ jobs:
- name: Docker Setup QEMU
uses: docker/[email protected]

- name: Verify QEMU
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Verify QEMU setup
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Setup Buildx builder
run: |
docker buildx create --name mybuilder --driver docker-container --use
docker buildx inspect --bootstrap
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin

Expand All @@ -31,5 +35,5 @@ jobs:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --push \
-t ${{ secrets.DOCKERHUB_USERNAME }}/slackonos:latest .
- name: Verify the platforms
run: docker buildx inspect --bootstrap
- name: Verify the built platforms
run: docker buildx imagetools inspect ${{ secrets.DOCKERHUB_USERNAME }}/slackonos:latest

0 comments on commit cfcfa10

Please sign in to comment.