Files
gitea-workspaces/.gitea/workflows/release-tag.yml
KoCoder 4f9f4bcf72
Some checks failed
build-docker-imge / Build the docker container (push) Successful in 4m27s
build-docker-imge / Build the docker container (pull_request) Failing after 8s
Add debug statements to the ci action
2024-08-04 22:04:50 +02:00

31 lines
986 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 }}" "${{ gitea }}" "${{ gitea.sha }}"
- name: "Git switch"
run: git switch "${{ gitea.ref_name }}"
- uses: aevea/action-kaniko@master
name: Run Kaniko to build our docker container.
with:
image: kocoded/gitea-workspaces/ubuntu-vscode-node
tag: ${{ gitea.workflow_sha }}
tag_with_latest: true
registry: git.kocoder.xyz
username: ${{ secrets.CI_RUNNER_USER }}
password: ${{ secrets.CI_RUNNER_TOKEN }}
build_file: ubuntu-vscode-node/Dockerfile