ci: rename to forgejo + correct oci registry and image details
All checks were successful
Docker CI / release (push) Successful in 2m51s
All checks were successful
Docker CI / release (push) Successful in 2m51s
This commit is contained in:
parent
542b8e2414
commit
602417e2c6
|
|
@ -7,11 +7,13 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
node-version: 18.x
|
||||
node-version: 20.x
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
|
@ -25,9 +27,9 @@ jobs:
|
|||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: |
|
||||
nzambello/nzambello.dev
|
||||
git.nzambello.dev/nzambello/nzambello.dev
|
||||
labels: |
|
||||
org.label-schema.docker.cmd=docker run -d -p 8080:8080 nzambello/nzambello.dev:latest
|
||||
org.label-schema.docker.cmd=docker run -d -p 8080:8080 git.nzambello.dev/nzambello/nzambello.dev:latest
|
||||
flavor: latest=false
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
|
|
@ -43,8 +45,9 @@ jobs:
|
|||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: git.nzambello.dev
|
||||
username: nzambello
|
||||
password: ${{ secrets.ACTIONS_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
|
|
@ -52,5 +55,13 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64
|
||||
file: Dockerfile
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
tags: |
|
||||
git.nzambello.dev/nzambello/nccfiore.it:latest
|
||||
labels: $${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Deploy
|
||||
uses: darnfish/watchtower-update@v3.2
|
||||
with:
|
||||
url: https://watchtower.nzambello.dev/v1/update
|
||||
api_token: '${{ secrets.WATCHTOWER_API_TOKEN }}'
|
||||
images: git.nzambello.dev/nzambello/nzambello.dev
|
||||
Loading…
Reference in a new issue