From 10fb6bdf9bb1918f5fbf911cf118b85a38f310fb Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Sun, 23 Jul 2023 19:14:51 +0200 Subject: [PATCH] first version of gitea workflow --- .gitea/workflows/dev.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/dev.yaml diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml new file mode 100644 index 0000000..41d60fd --- /dev/null +++ b/.gitea/workflows/dev.yaml @@ -0,0 +1,20 @@ +on: + push: + branches-ignore: + - main + +jobs: + build: + runs-on: docker + steps: + - uses: actions/checkout@v3 + - name: Pull Docker Image for caching + run: docker pull gitea.sikorski.cloud/RogerSik/docker-admin-helper:development || exit 0 + - name: Build docker image + run: | + docker build . \ + --cache-from gitea.sikorski.cloud/RogerSik/docker-admin-helper:development \ + --file Dockerfile \ + --tag gitea.sikorski.cloud/RogerSik/docker-admin-helper:development + - name: Push docker image + run: docker push gitea.sikorski.cloud/RogerSik/docker-admin-helper --all-tags