fix: runs-on ubuntu-latest (node voor checkout) + apt docker.io
This commit is contained in:
@@ -9,15 +9,17 @@ on:
|
||||
|
||||
jobs:
|
||||
build-push:
|
||||
runs-on: alpine
|
||||
container:
|
||||
image: alpine:latest
|
||||
# ubuntu-latest mapt naar node:20-bookworm (heeft node voor actions/checkout,
|
||||
# en apt voor docker-cli). NIET alpine: dat mist node -> checkout faalt.
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install docker CLI
|
||||
run: apk add --no-cache docker-cli
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq docker.io
|
||||
|
||||
- name: Registry login
|
||||
env:
|
||||
@@ -33,19 +35,11 @@ jobs:
|
||||
docker push 10.0.0.18:5000/ci-pipeline-demo:${{ github.sha }}
|
||||
docker push 10.0.0.18:5000/ci-pipeline-demo:latest
|
||||
|
||||
# ---------------------------------------------------------------------
|
||||
# DEPLOY-ROUTE (per repo instelbaar):
|
||||
#
|
||||
# Route A (Action deployt direct) - uncomment voor instant deploy.
|
||||
# Vereist dat de runner de doel-container-engine bereikt. Alleen voor
|
||||
# vertrouwde repos (geeft CI effectief host-toegang).
|
||||
# Route A (Action deployt direct): uncomment onderstaande stap. Alleen vertrouwde repos.
|
||||
# - name: Deploy (route A)
|
||||
# run: |
|
||||
# docker pull 10.0.0.18:5000/ci-pipeline-demo:latest
|
||||
# docker rm -f ci-pipeline-demo || true
|
||||
# docker run -d --name ci-pipeline-demo 10.0.0.18:5000/ci-pipeline-demo:latest
|
||||
#
|
||||
# Route B (Dockhand deployt) - GEEN deploy-stap hier. Zet op de doel-container
|
||||
# het label dockhand.update=true; Dockhand pollt de registry en deployt met
|
||||
# safe-pull + rollback. Trager (poll-interval) maar met veiligheidsklep.
|
||||
# ---------------------------------------------------------------------
|
||||
# Route B (Dockhand): geen deploy-stap; label dockhand.update=true op de doel-container.
|
||||
|
||||
Reference in New Issue
Block a user