proba/.forgejo/workflows/test-registry.yaml
rangelovk 0935dc6d3b
All checks were successful
build-image / build (push) Successful in 50s
Update .forgejo/workflows/test-registry.yaml
2026-07-08 22:00:30 +00:00

31 lines
No EOL
858 B
YAML

name: build-image
on:
push:
branches: [main]
jobs:
build:
runs-on: docker
container:
image: quay.io/buildah/stable
steps:
- name: Checkout manually
run: |
git clone https://rangelovk:${{ secrets.REGISTRY_TOKEN }}@git.rangelovk.xyz/tues-test/proba.git .
git checkout ${{ github.sha }}
- name: Login to registry
run: |
echo "${{ secrets.FORGEJO_REGISTRY_TOKEN }}" | buildah login \
--username "${{ forgejo.actor }}" \
--password-stdin \
git.rangelovk.xyz
- name: Build image
run: buildah bud -t git.rangelovk.xyz/rangelovk/proba:latest .
- name: Push
run: |
buildah push \
--creds "rangelovk:${{ secrets.FORGEJO_REGISTRY_TOKEN }}" \
git.rangelovk.xyz/rangelovk/proba:latest