diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index c00e210..65ab6e7 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -6,26 +6,34 @@ on: - main jobs: - Dockerfile lint: - runs-on: k3s - steps: - - uses: actions/checkout@v3 - - uses: hadolint/hadolint-action@v3.1.0 - with: - dockerfile: Dockerfile + # Dockerfile lint: + # runs-on: k3s + # steps: + # - uses: actions/checkout@v3 + # - uses: hadolint/hadolint-action@v3.1.0 + # with: + # dockerfile: Dockerfile + + # build: + # # needs: Dockerfile lint + # runs-on: docker # because of ipv4 problem in k3s we use docker vm + # steps: + # - uses: actions/checkout@v3 + # - name: Kaniko build + # uses: aevea/action-kaniko@v0.10.0 + # with: + # image: gitea.sikorski.cloud/rogersik/monica + # tag: development build: - needs: Dockerfile lint - runs-on: docker + # needs: Dockerfile lint + runs-on: docker # because of ipv4 problem in k3s we use docker vm + container: + image: gcr.io/kaniko-project/executor:v1.9.0-debug steps: - uses: actions/checkout@v3 - - name: Pull Docker Image for caching - run: docker pull gitea.sikorski.cloud/rogersik/monica:development || exit 0 - - name: Build docker image - run: | - docker build . \ - --cache-from gitea.sikorski.cloud/rogersik/monica:development \ - --file Dockerfile \ - --tag gitea.sikorski.cloud/rogersik/monica:development - - name: Push docker image - run: docker push gitea.sikorski.cloud/rogersik/monica --all-tags + - run: | + /kaniko/executor + --context . + --dockerfile ./Dockerfile" + --destination gitea.sikorski.cloud/rogersik/monica:development