New: Automatic Docker container builds
This commit is contained in:
parent
fd5aa79278
commit
af0d3d2c53
28
.gitea/workflows/build-docker-container.yml
Normal file
28
.gitea/workflows/build-docker-container.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: build-docker-imge
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build the docker container
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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.sha }}"
|
||||
- name: "Git checkout"
|
||||
run: git checkout "${{ gitea.sha }}"
|
||||
- uses: aevea/action-kaniko@master
|
||||
name: Run Kaniko to build our docker container.
|
||||
with:
|
||||
image: kocoder/Nachhilfesystem24
|
||||
tag: ${{ gitea.workflow_sha }}
|
||||
tag_with_latest: true
|
||||
registry: git.kocoder.xyz
|
||||
username: ${{ secrets.CI_RUNNER_USER }}
|
||||
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||
build_file: Dockerfile
|
Loading…
Reference in New Issue
Block a user