Skip to content

Commit

Permalink
Update publish-ghcr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kbdharun authored Mar 21, 2024
1 parent 0a65b46 commit f3a9642
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/publish-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64, linux/riscv64
platforms: linux/amd64, linux/arm64, linux/riscv64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -25,16 +25,11 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
run: |
docker build . --tag ghcr.io/${{ github.actor }}/tldr-lint:latest --platform=linux/amd64,linux/arm64,linux/riscv64
docker push ghcr.io/${{ github.actor }}/tldr-lint:latest

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64,linux/arm64,linux/riscv64
push: true
tags: ghcr.io/${{ github.actor }}/tldr-lint:latest

0 comments on commit f3a9642

Please sign in to comment.