Github Actions: Publish first docker image
This commit is contained in:
parent
37476c814e
commit
6acaef0b33
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