Add in the app and workflow
This commit is contained in:
31
.gitea/workflows/build-container.yaml
Normal file
31
.gitea/workflows/build-container.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Build Cat Web App Container
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: gitea-runner
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone https://gitea.montgomeryspot.com/myorg/myrepo.git
|
||||
cd myrepo
|
||||
|
||||
- name: Build container image
|
||||
run: |
|
||||
cd myrepo
|
||||
podman build -f Containerfile -t myorg/catapp:latest .
|
||||
|
||||
# Optional: Push to registry
|
||||
# - name: Push to registry
|
||||
# env:
|
||||
# REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
# REGISTRY_PASS: ${{ secrets.REGISTRY_PASS }}
|
||||
# run: |
|
||||
# podman login myregistry.example.com -u $REGISTRY_USER -p $REGISTRY_PASS
|
||||
# podman tag myorg/catapp:latest myregistry.example.com/myorg/catapp:latest
|
||||
# podman push myregistry.example.com/myorg/catapp:latest
|
||||
|
||||
Reference in New Issue
Block a user