Skip to content

Commit

Permalink
ci: update docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Feb 8, 2023
1 parent 16e03be commit 0488ab2
Showing 1 changed file with 2 additions and 33 deletions.
35 changes: 2 additions & 33 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [main]

jobs:
linux_amd64:
ghcr:
name: Push Image to GitHub Packages
runs-on: ubuntu-latest
steps:
Expand All @@ -31,38 +31,7 @@ jobs:
- name: Build Docker Image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4
with:
platforms: linux/amd64
push: true
tags: |
ghcr.io/ijskoud/paperplane:v4
ghcr.io/ijskoud/paperplane:latest
cache-from: type=gha
cache-to: type=gha,mode=max
linux_arm64:
name: Push Image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3

- name: Setup QEMU
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # tag=v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # v2

- name: Login to Github Packages
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # tag=v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker Image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4
with:
platforms: linux/arm64
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/ijskoud/paperplane:v4
Expand Down

0 comments on commit 0488ab2

Please sign in to comment.