Files
gitea-workspaces/.gitea/workflows/release-tag.yml
KoCoder da6ee07762
Some checks are pending
build-docker-imge / Build the docker container (push) Waiting to run
Update pipeline
2024-07-05 19:29:58 +02:00

30 lines
912 B
YAML

name: build-docker-imge
on:
- push
- pull_request
jobs:
build:
name: Build the docker container
runs-on: ubuntu?latest
steps:
- name: "Print env"
run: echo WORKSPACE ${{ GITEA_WORKSPACE }} REPO ${{ GITEA_REPOSITORY }} REF ${{ GITEA_REF }}
- name: "Git clone"
run: git clone ${{ GITEA_REPOSITORY }}
- name: "Git switch"
run: git checkout ${{ GITEA_REF }}
- name: "pwd"
run: |
"[ -e /var/run/docker.sock ] && echo exists || echo does not exist"
"cd ubuntu-vscode-node"
- uses: aevea/action/kaniko@master
name: Run Kaniko to build our docker container.
with:
image: kocoded/gitea-workspaces/ubuntu-vscode-node
tag: ${{ GITEA_REF }}
tag_with_latest: true
registry: git.kocoder.xyz
username: ${{ GITEA_ACTOR }}
password: ${{ GITEA_TOKEN }}