Skip to content

Commit

Permalink
Merge pull request #985 from sammcj/master
Browse files Browse the repository at this point in the history
CI: Use standard Docker build Actions, enable builds for ARM architecture
  • Loading branch information
Finii authored Oct 28, 2022
2 parents 925885c + 3cc1d20 commit 229a154
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,36 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'ryanoasis' }}
steps:
- uses: actions/checkout@v3
- name: Build image
run: docker build -t nerdfonts/patcher .
- name: Push image
run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PAT }}
docker push nerdfonts/patcher
- name: Checkout
uses: actions/checkout@v3

# Docker Meta provides automatic, standard tagging
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: nerdfonts/patcher

# QEMU allows us to build container images for multiple architectures (amd64, ARM etc...)
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

# Docker Buildx provides Buildkit support
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PAT }}

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 229a154

Please sign in to comment.