Skip to content

Commit

Permalink
Add labels and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Jun 9, 2024
1 parent 578b92c commit 965dd5c
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,33 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Buildx
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ZeusWPI/Tap
ghcr.io/ZeusWPI/Tap
tags: |
type=sha
flavor: |
latest=auto
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push

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

0 comments on commit 965dd5c

Please sign in to comment.