Skip to content

Commit

Permalink
Build v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benscobie committed Dec 17, 2024
1 parent a2d1c17 commit 048e4a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 38 deletions.
44 changes: 6 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -81,22 +53,18 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]

- name: Build & Push docker images
uses: docker/build-push-action@v5
with:
context: .
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 }}
Empty file added distribution/linux/install.sh
Empty file.

0 comments on commit 048e4a9

Please sign in to comment.