From 1776ada5ee631ad1edbd7e8b0aa4e074b68fdbff Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Fri, 3 Apr 2026 14:40:30 +0200 Subject: [PATCH] Create build-and-publish.yaml --- .gitea/workflows/build-and-publish.yaml | 28 +++++++++++++++++++++++++ 1 file changed, 28 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..76546bf --- /dev/null +++ b/.gitea/workflows/build-and-publish.yaml @@ -0,0 +1,28 @@ +name: mnemo-build-and-publish +run-name: Mnemosyne Build&Publish by ${{gitea.actor}} on ${{gitea.ref_name}} +on: + push: + branches: + - master + +jobs: + gractwo-mnemo-build: + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v4 + - name: set short sha + run: echo "short_sha=$(echo ${{gitea.sha}} | cut -c1-12)" >> $GITEA_ENV + - name: build image + run: | + docker buildx build --platform linux/amd64 \ + -t git.gractwo.pl/gractwo/mnemosyne:${{env.short_sha}} \ + . + - name: log into package registry + uses: docker/login-action@v3 + with: + registry: git.gractwo.pl + username: ${{gitea.actor}} + password: ${{secrets.TOKEN2}} + - name: publish + run: docker push git.gractwo.pl/gractwo/mnemosyne:${{env.short_sha}}