Skip to content

Commit

Permalink
Support building for multiple architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
sspreitzer committed Jul 26, 2022
1 parent 285cbf7 commit 3206c27
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,30 @@ jobs:
- fedora
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Builder
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
- name: Build and Push Container Image
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
context: ./${{ matrix.os }}/
pull: true
push: true
# platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/sspreitzer/shellinabox-container-image:${{ matrix.os }}
docker.io/sspreitzer/shellinabox:${{ matrix.os }}

0 comments on commit 3206c27

Please sign in to comment.