ci: workflow Forgejo Actions para publicar imagen en registry + compose por env var N8N_WEBHOOK_URL
Some checks failed
build-and-push-image / build (push) Has been cancelled
Some checks failed
build-and-push-image / build (push) Has been cancelled
This commit is contained in:
parent
4193336775
commit
f0f6db06c9
5 changed files with 67 additions and 15 deletions
32
.forgejo/workflows/build.yml
Normal file
32
.forgejo/workflows/build.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: build-and-push-image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Forgejo Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: forgejo.ikeforge.com
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
forgejo.ikeforge.com/ike/webchatv2:latest
|
||||
forgejo.ikeforge.com/ike/webchatv2:${{ gitea.sha }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue