paramod-rust/.gitea/workflows/deploy.yml

28 lines
872 B
YAML

name: Build Docker Image (Podman)
on:
push:
branches: [ master ]
pull_request:
# workflow_call:
jobs:
build:
runs-on: podman-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build image with Podman
env:
BUILDAH_ISOLATION: chroot
run: |
VERSION=$(cat VERSION)
podman build --network=host -t paramod:latest -t git.skaville.rocks/eneuber/paramod:$VERSION .
- name: Login to Gitea Registry
run: echo ${{ secrets.REGISTRY_TOKEN }} | podman login -u ${{ secrets.USER }} --password-stdin git.skaville.rocks
- name: Push image with version
run: |
VERSION=$(cat VERSION)
podman push git.skaville.rocks/eneuber/paramod:$VERSION
- name: Push image latest
run: podman push git.skaville.rocks/eneuber/paramod:latest