parent
82b0f990a2
commit
6eef29511e
2 changed files with 9 additions and 8 deletions
|
@ -4,13 +4,9 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: gcr.io/kaniko-project/executor:v1.23.2-debug
|
||||
entrypoint: [""]
|
||||
image: docker:dind
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: build using kaniko
|
||||
- name: build using dind
|
||||
run: |
|
||||
- /kaniko/executor
|
||||
--context "${GITHUB_WORKSPACE}"
|
||||
--dockerfile "${GITHUB_WORKSPACE}/Dockerfile"
|
||||
--destination "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}:${GITHUB_REF}"
|
||||
docker build -t code.lab.cowley.tech/${GITHUB_REPOSITORY}:${GITHUB}
|
||||
|
|
7
Makefile
7
Makefile
|
@ -1,3 +1,4 @@
|
|||
GITREF := $(shell git rev-parse --short HEAD)
|
||||
init:
|
||||
podman run --rm -ti -v ${PWD}:/docs docker.io/squidfunk/mkdocs-material new .
|
||||
|
||||
|
@ -5,4 +6,8 @@ preview:
|
|||
docker run --rm -ti -v ${PWD}:/docs:Z -p 8000:8000 docker.io/squidfunk/mkdocs-material
|
||||
|
||||
build:
|
||||
podman run --rm -ti -v ${PWD}:/docs docker.io/squidfunk/mkdocs-material build
|
||||
docker run --rm -ti -v ${PWD}:/docs docker.io/squidfunk/mkdocs-material build
|
||||
|
||||
docker:
|
||||
@docker build -t "code.lab.cowley.tech/homelab/homelab-docs:$(GITREF)" .
|
||||
@docker push "code.lab.cowley.tech/homelab/homelab-docs:$(GITREF)"
|
||||
|
|
Loading…
Add table
Reference in a new issue