Skip to content

Commit

Permalink
Fix docker github action, add names to steps
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianFP committed Oct 16, 2024
1 parent a874b5e commit 2de91a2
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,30 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: docker/checkout@v4
- uses: docker/metadata-action@v5
- name: Generate image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
project-W/backend
ghcr.io/project-W/backend
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr for docker push
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
- name: Docker build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 2de91a2

Please sign in to comment.