Merge pull request 'Github Actions: Publish first docker image' (#2) from feature/build-first-docker-image into main
All checks were successful
Build & Publish to GHCR / build (push) Successful in 56s
All checks were successful
Build & Publish to GHCR / build (push) Successful in 56s
Reviewed-on: #2
This commit is contained in:
commit
8b4accfee4
32
.gitea/workflows/build.yaml
Normal file
32
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Build & Publish to GHCR
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
GHCR_ORG: gansejunge
|
||||||
|
IMAGE_NAME: app-notifications-backend-push-notifications
|
||||||
|
IMAGE_PATH: ghcr.io/gansejunge/app-notifications-backend-push-notifications
|
||||||
|
OPS_ORG: notifier
|
||||||
|
OPS_REPO: ops-deployment
|
||||||
|
OPS_BRANCH_BASE: main
|
||||||
|
OPS_PATH: backend-push-notifications/deployment.yaml
|
||||||
|
GITEA_URL: https://git.gansejunge.com
|
||||||
|
|
||||||
|
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/${{ env.IMAGE_NAME }}:1 .
|
||||||
|
docker push ghcr.io/gansejunge/${{ env.IMAGE_NAME }}:1
|
||||||
Loading…
x
Reference in New Issue
Block a user