Gitea Actions: Publish to GHCR
All checks were successful
Build & Publish to GHCR / build (push) Successful in 51s
All checks were successful
Build & Publish to GHCR / build (push) Successful in 51s
This commit is contained in:
parent
637f51f0be
commit
a9c8007259
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-internal
|
||||||
|
|
||||||
|
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