Files
gitea-workspaces/.gitea/workflows/release-tag.yml
KoCoder 4a5b136ef2
Some checks failed
build-docker-imge / Build the docker container (push) Failing after 7s
Switching back to ref
2024-07-06 23:26:59 +02:00

32 lines
940 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
- name: "Git clone"
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git
- name: "LS"
run: ls -lisa
- name: "LS ECHO"
run: echo "$(ls)" "${{ gitea.repository }}" "${{ gitea.ref }}"
- name: "Git switch"
run: git checkout "${{ gitea.ref }}"
- 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: ${{ secrets.CI_RUNNER_USER }}
password: ${{ secrets.CI_RUNNER_TOKEN }}
build_file: ubuntu-vscode-node/Dockerfile