Gitea Actions: Publish to GHCR
Some checks failed
Build & Publish to GHCR / build (push) Has been cancelled
Some checks failed
Build & Publish to GHCR / build (push) Has been cancelled
This commit is contained in:
parent
637f51f0be
commit
62cf76fd0f
24
.gitea/workflows/build.yaml
Normal file
24
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Build & Publish to GHCR
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: app-notifications-backend-api
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log in to GHCR
|
||||||
|
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin
|
||||||
|
|
||||||
|
- name: Build and Push Docker Image
|
||||||
|
run: |
|
||||||
|
docker build -t ghcr.io/gansejunge/${IMAGE_NAME}:1 .
|
||||||
|
docker push ghcr.io/gansejunge/${IMAGE_NAME}:1
|
||||||
Loading…
x
Reference in New Issue
Block a user