fix pipeline

This commit is contained in:
Evelyn Alicke 2023-07-03 11:08:13 +02:00
parent 6d3d00b40d
commit 53c6f3cfe9
No known key found for this signature in database
GPG key ID: 6834780BDA479436

View file

@ -7,11 +7,22 @@ on:
types: [ published ] types: [ published ]
jobs: jobs:
docker: docker:
permissions: write-all
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- -
name: Build and push name: Login to GitHub Container Registry
uses: docker/build-push-action@v4 uses: docker/login-action@v2
with: with:
push: true registry: ghcr.io
tags: user/app:latest username: ${{ github.repository_owner }}
password: ${{ github.token }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.ref_name }}