zot-wo-auth/.gitea/workflows/patchbuild.yaml

36 lines
972 B
YAML
Executable File

name: Building zot from binaries with patch for login page
on:
push:
branches:
- 'master'
- 'zot-alt'
- 'zui-alt'
jobs:
build-process:
runs-on: alt-sisyphus
steps:
- name: Update apt
uses: actions/init-alt-env@v1
- name: Install req-s
run: |
apt-get install -y podman
- name: Check out zot
uses: actions/checkout@master
- name: Build image
run: |
podman build --tag alt/zot-wo-auth:$ZOT_VER --build-arg="ZOT_VER=$ZOT_VER" --build-arg="ZUI_VER=$ZUI_VER" .
env:
ZOT_VER: 'v2.0.4'
ZUI_VER: 'commit-9de2337'
- name: Push image
run: |
podman login --username $P_USER --password $P_PASS $URL
podman push alt/zot-wo-auth:$ZOT_VER docker://$URL/alt/zot-wo-auth
podman rmi --all
env:
P_USER: ${{ secrets.PODMAN_USER }}
P_PASS: ${{ secrets.PODMAN_PASS }}
ZOT_VER: 'v2.0.4'
URL: 'gitea.basealt.ru'