32 lines
844 B
YAML
32 lines
844 B
YAML
name: Build Cat Web App Container
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: podman
|
|
steps:
|
|
- name: Checkout code
|
|
run: |
|
|
git clone https://gitea.montgomeryspot.com/adam/cat-memes.git
|
|
cd cat-memes
|
|
|
|
- name: Build container image
|
|
run: |
|
|
cd cat-memes
|
|
podman build -f Containerfile -t adam/cat-memes: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
|
|
|