From eef324bd937bbe79e9b9f6c30bb53d410a511506 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Tue, 23 May 2023 19:24:56 +0200 Subject: [PATCH] build --- .gitea/workflows/publish-container.yaml | 43 +++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/publish-container.yaml diff --git a/.gitea/workflows/publish-container.yaml b/.gitea/workflows/publish-container.yaml new file mode 100644 index 0000000..52366cd --- /dev/null +++ b/.gitea/workflows/publish-container.yaml @@ -0,0 +1,43 @@ +name: Publish Cargo and Docker package +run-name: ${{ github.actor }} is building ${{ github.repository }} +on: + push: + tags: + - 'v**' + +jobs: + Publish-Docker: + runs-on: ubuntu-latest + needs: Publish-Cargo + steps: + - name: Check out repository code + uses: https://github.com/actions/checkout@v3 + + - name: Write release version + run: | + KARTSROLLER_VERSION=${GITHUB_REF_NAME#v} + echo Version: $KARTSROLLER_VERSION + echo "KARTSROLLER_VERSION=$KARTSROLLER_VERSION" >> $GITHUB_ENV + + - name: Install Docker + run: curl -fsSL https://get.docker.com | sh + + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v2 + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: git.raptorpond.com + username: henine + password: "${{ secrets.PACKAGE_UPLOAD_TOKEN }}" + + - name: Build and push + uses: https://github.com/docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: | + git.raptorpond.com/${{ github.repository }}:latest + git.raptorpond.com/${{ github.repository }}:${{ env.KARTSROLLER_VERSION }} diff --git a/package.json b/package.json index 4c9079e..deac1b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kartsroller", - "version": "0.0.0", + "version": "0.0.1", "private": true, "scripts": { "dev": "vite",