28 lines
No EOL
748 B
YAML
28 lines
No EOL
748 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 "${{ forgejo.token }}" | buildah login \
|
|
--username "${{ forgejo.actor }}" \
|
|
--password-stdin \
|
|
git.rangelovk.xyz
|
|
|
|
- name: Build image
|
|
run: buildah bud -t git.rangelovk.xyz/tues-test/proba:latest .
|
|
|
|
- name: Push image
|
|
run: buildah push git.rangelovk.xyz/tues-test/proba:latest |