Release 0.0.6-beta
#9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish packages | |
on: | |
push: | |
# run only against tags | |
tags: | |
- "*" | |
permissions: | |
contents: write | |
# packages: write | |
# issues: write | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: git fetch --force --tags | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ">=1.22" | |
cache: true | |
cache-dependency-path: tunnel/go.sum | |
- name: Setup client | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8.7.5 | |
run_install: false | |
- name: Install client dependencies | |
run: pnpm --dir tunnel/internal/client/dashboard/ui install | |
- name: Build client | |
run: pnpm --dir tunnel/internal/client/dashboard/ui build | |
- name: Publish packages | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} | |
docker: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- dockerfile: ./admin/Dockerfile | |
image: amalshaji/portr-admin | |
context: ./admin | |
- dockerfile: ./tunnel/Dockerfile | |
image: amalshaji/portr-tunnel | |
context: ./tunnel | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ${{ matrix.image }} | |
tags: | | |
type=semver,pattern={{version}} | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: amalshaji | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
context: ${{ matrix.context }} | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
platforms: | | |
linux/amd64 | |
linux/arm64 | |
file: ${{ matrix.dockerfile }} |