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 84deaef commit 7f89bd7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
build:
Expand All @@ -15,6 +16,8 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: 'arm64'

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -25,5 +28,5 @@ jobs:

- name: Build and push
run: |
docker build . --tag ghcr.io/${{ github.actor }}/tldr-lint:latest ghcr.io/${{ github.actor }}/tldr-lint:${{ github.ref_name }}
docker push ghcr.io/${{ github.actor }}/tldr-lint:latest ghcr.io/${{ github.actor }}/tldr-lint:${{ github.ref_name }}
docker build . --tag ghcr.io/${{ github.actor }}/tldr-lint:latest
docker push ghcr.io/${{ github.actor }}/tldr-lint:latest

0 comments on commit 7f89bd7

Please sign in to comment.