From d728de9081bf036f4d14ce11383449152351e75e Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Sun, 29 Mar 2026 16:38:03 +0200 Subject: [PATCH] build&publish workflow wip: build only --- .gitea/workflows/build-and-publish.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/build-and-publish.yaml diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml new file mode 100644 index 0000000..42625d8 --- /dev/null +++ b/.gitea/workflows/build-and-publish.yaml @@ -0,0 +1,21 @@ +name: arche-build-and-publish +run-name: arche build & publish by ${{gitea.actor}} on ${{gitea.ref_name}} +on: [push] + +jobs: + gractwo-arche-build-test: + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v4 + - name: set short SHA + run: echo "SHORT_SHA=${GITEA_SHA::7}" >> $GITEA_ENV + - name: set up docker + run: curl -fsSL https://get.docker.com | sh + - name: set up docker buildx + uses: docker/setup-buildx-action@v3 + - name: build image + run: docker buildx build --platform linux/amd64 \ + -t git.gractwo.pl/gractwo/arche:latest \ + -t git.gractwo.pl/gractwo/arche:${{env.SHORT_SHA}} \ + .