Update pipeline
Some checks are pending
build-docker-imge / Build the docker container (push) Waiting to run

This commit is contained in:
Konstantin Hintermayer 2024-07-05 19:29:58 +02:00
parent 8f4b6dd439
commit da6ee07762

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
build: build:
name: Build the docker container name: Build the docker container
runs-on: docker:latest runs-on: ubuntu?latest
steps: steps:
- name: "Print env" - name: "Print env"
run: echo WORKSPACE ${{ GITEA_WORKSPACE }} REPO ${{ GITEA_REPOSITORY }} REF ${{ GITEA_REF }} run: echo WORKSPACE ${{ GITEA_WORKSPACE }} REPO ${{ GITEA_REPOSITORY }} REF ${{ GITEA_REF }}
@ -15,9 +15,15 @@ jobs:
- name: "Git switch" - name: "Git switch"
run: git checkout ${{ GITEA_REF }} run: git checkout ${{ GITEA_REF }}
- name: "pwd" - name: "pwd"
run: "[ -e /var/run/docker.sock ] && echo exists || echo does not exist" run: |
- uses: docker/setup-buildx-action@v3 "[ -e /var/run/docker.sock ] && echo exists || echo does not exist"
name: Setup docker buildx "cd ubuntu-vscode-node"
- run: docker build . -t git.kocoder.xyz/kocoded/gitea-workspaces:${{ var.GITEA_SHA }} - uses: aevea/action/kaniko@master
name: Build the docker container name: Run Kaniko to build our docker container.
- run: docker push git.kocoder.xyz/kocoded/gitea-workspaces:${{ var.GITEA_SHA }} 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 }}