Introduce gitea-actions to automatically build this container #8

Merged
Kocoder merged 47 commits from gitea-actions into main 2024-08-04 21:06:54 +00:00
Showing only changes of commit 367f3096ef - Show all commits

View File

@@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Print env"
run: echo WORKSPACE ${{ GITEA_ACTOR }} REPO ${{ GITEA_TOKEN }} REF ${{ GITEA_REF }}
run: echo WORKSPACE ${{ vars,GITEA_ACTOR }} REPO ${{ vars.GITEA_TOKEN }} REF ${{ vars.GITEA_REF }}
- name: "Git clone"
run: git clone ${{ GITEA_REPOSITORY }}
run: git clone ${{ vars.GITEA_REPOSITORY }}
- name: "Git switch"
run: git checkout ${{ GITEA_REF }}"
run: git checkout ${{ vars.GITEA_REF }}"
- uses: aevea/action-kaniko@master
name: Run Kaniko to build our docker container.
with:
@@ -21,5 +21,5 @@ jobs:
tag: ${{ GITEA_REF }}
tag_with_latest: true
registry: git.kocoder.xyz
username: ${{ GITEA_ACTOR }}
username: ${{ vars,GITEA_ACTOR }}
password: ${{ GITEA_TOKEN }}