Skip to content

Release

Release #1

Workflow file for this run

name: "Release"
on:
workflow_dispatch:
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
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --dry-run
build-docker-image:
name: Build docker images
needs: semantic-release
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/jorenn92/maintainerr
- name: Log in to GitHub Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
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
tags: |
ghcr.io/jorenn92/maintainerr:${{ steps.package-version.outputs.current-version}}
ghcr.io/jorenn92/maintainerr:latest
# jorenn92/maintainerr:latest
# jorenn92/maintainerr:${{ steps.package-version.outputs.current-version}}
labels: ${{ steps.meta.outputs.labels }}