Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 0 additions & 65 deletions .changeset/release-0-2-0.md

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/docker-rebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Docker Rebuild

on:
workflow_dispatch:
inputs:
version:
description: 'Version tag to build (e.g. v0.2.0). Defaults to version in package.json.'
required: false

concurrency: docker-rebuild

permissions:
contents: read

jobs:
docker:
name: Build and push Docker image
runs-on: ubuntu-latest

steps:
- 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: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract version
id: meta
run: |
VERSION="${{ github.event.inputs.version }}"
if [ -z "$VERSION" ]; then
VERSION="v$(node -p "require('./packages/service/package.json').version")"
fi
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
inebrio/routerly:latest
inebrio/routerly:${{ steps.meta.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max
Loading
Loading