fix pipeline
This commit is contained in:
parent
6d3d00b40d
commit
53c6f3cfe9
1 changed files with 16 additions and 5 deletions
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue