From 048e4a9ebe13eef9e6e03eb80a6d90be7d95f7ff Mon Sep 17 00:00:00 2001 From: Ben Scobie Date: Tue, 17 Dec 2024 10:33:00 +0000 Subject: [PATCH] Build v2.3.0 --- .github/workflows/release.yml | 44 +++++------------------------------ distribution/linux/install.sh | 0 2 files changed, 6 insertions(+), 38 deletions(-) create mode 100644 distribution/linux/install.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e30593bd..9ed19196 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,40 +13,9 @@ on: default: true jobs: - semantic-release: - name: Tag and release latest version - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - persist-credentials: false - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - name: Activate corepack - run: | - corepack install - corepack enable - - name: Install dependencies - run: yarn --immutable - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} - run: | - if [ "${{ github.event.inputs.dry-run-semantic-release }}" == "true" ]; then - npx semantic-release --dry-run - else - npx semantic-release - fi - build-docker-image: if: ${{ github.event.inputs.with-docker-images == 'true' }} name: Build and push docker images - needs: semantic-release runs-on: ubuntu-latest steps: - name: Check out the repo @@ -65,6 +34,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: + labels: | + org.opencontainers.image.version=main + org.opencontainers.image.revision=03a11f346771b8813212a83d10b918721d81aabf images: | ghcr.io/jorenn92/maintainerr @@ -81,10 +53,6 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: get-npm-version - id: package-version - uses: martinbeentjes/npm-get-version-action@v1.3.1 - - name: Build & Push docker images uses: docker/build-push-action@v5 with: @@ -92,11 +60,11 @@ jobs: platforms: linux/amd64,linux/arm64 push: true build-args: | - GIT_SHA=${{ github.sha }} + GIT_SHA=03a11f346771b8813212a83d10b918721d81aabf VERSION_TAG=stable tags: | - ghcr.io/jorenn92/maintainerr:${{ steps.package-version.outputs.current-version}} + ghcr.io/jorenn92/maintainerr:2.3.0 ghcr.io/jorenn92/maintainerr:latest - jorenn92/maintainerr:${{ steps.package-version.outputs.current-version}} + jorenn92/maintainerr:2.3.0 jorenn92/maintainerr:latest labels: ${{ steps.meta.outputs.labels }} diff --git a/distribution/linux/install.sh b/distribution/linux/install.sh new file mode 100644 index 00000000..e69de29b