feature/switch-to-kaniko-and-k3s
All checks were successful
docker-monica-build mr / Dockerfile lint (push) Successful in 11s
docker-monica-build mr / build (push) Successful in 1m43s

Signed-off-by: Roger Sikorski <roger@sikorski.cloud>
This commit is contained in:
2023-08-22 16:16:23 +02:00
parent 310d957c3a
commit 1a17f6ff2d
2 changed files with 21 additions and 23 deletions

View File

@@ -16,16 +16,15 @@ jobs:
build: build:
needs: Dockerfile lint needs: Dockerfile lint
runs-on: docker runs-on: k3s
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Pull Docker Image for caching - name: Kaniko build
run: docker pull gitea.sikorski.cloud/rogersik/monica:development || exit 0 uses: aevea/action-kaniko@master
- name: Build docker image with:
run: | image: rogersik/monica
docker build . \ registry: gitea.sikorski.cloud
--cache-from gitea.sikorski.cloud/rogersik/monica:development \ tag: development
--file Dockerfile \ cache: true
--tag gitea.sikorski.cloud/rogersik/monica:development username: rogersik
- name: Push docker image password: ${{ secrets.REGISTRY_PASSWORD }}
run: docker push gitea.sikorski.cloud/rogersik/monica --all-tags

View File

@@ -18,17 +18,16 @@ jobs:
build: build:
needs: Dockerfile lint needs: Dockerfile lint
runs-on: docker runs-on: k3s
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Pull Docker Image for caching - name: Kaniko build
run: docker pull gitea.sikorski.cloud/rogersik/monica:latest || exit 0 uses: aevea/action-kaniko@master
- name: Build docker image with:
run: | image: rogersik/monica
docker build . \ registry: gitea.sikorski.cloud
--cache-from gitea.sikorski.cloud/rogersik/monica:latest \ tag: 4
--file Dockerfile \ tag_with_latest: true
--tag gitea.sikorski.cloud/rogersik/monica:latest \ cache: true
--tag gitea.sikorski.cloud/rogersik/monica:4 username: rogersik
- name: Push docker image password: ${{ secrets.REGISTRY_PASSWORD }}
run: docker push gitea.sikorski.cloud/rogersik/monica --all-tags