From 1a1d760e6901a8208d71d79423abb370fd589fe0 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 7 Aug 2023 17:11:32 +0200 Subject: [PATCH] feat(CI): Add release pipeline --- .gitea/workflows/container-build.yaml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/container-build.yaml diff --git a/.gitea/workflows/container-build.yaml b/.gitea/workflows/container-build.yaml new file mode 100644 index 0000000..2623723 --- /dev/null +++ b/.gitea/workflows/container-build.yaml @@ -0,0 +1,29 @@ +name: S3 mount container image build +on: + release: + types: [published] + +jobs: + build: + container: + image: git.halis.io/athens-school/runner-images:debian12.1-node18 + runs-on: [arm64] + + steps: + - name: Make tag + id: tag_vars + run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT + - name: Checkout repository + uses: actions/checkout@v3 + - name: Login to register + uses: https://gitea.com/docker/login-action@v2 + with: + registry: git.halis.io + username: ${{ github.actor }} + password: ${{ secrets.CONTAINER_TOKEN }} + - name: Build and push + uses: https://github.com/docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ steps.tag_vars.outputs.IMAGE_NAME }}:${{ github.event.release.tag_name }}