cryptgeon/.github/workflows/release.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2022-11-02 12:26:57 +00:00
name: Publish
2021-05-02 12:08:14 +00:00
on:
2021-05-02 12:10:53 +00:00
workflow_dispatch:
2021-05-02 12:08:14 +00:00
push:
2021-05-02 13:12:04 +00:00
tags:
2023-04-27 07:36:33 +00:00
- 'v*.*.*'
2021-05-02 12:08:14 +00:00
jobs:
2023-05-12 19:17:17 +00:00
cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v2
- run: |
pnpm install --frozen-lockfile
pnpm run build
2021-05-02 12:08:14 +00:00
docker:
runs-on: ubuntu-latest
steps:
2023-04-27 07:36:33 +00:00
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
2021-05-19 09:29:33 +00:00
with:
install: true
2021-05-02 13:12:04 +00:00
- name: Docker Labels
id: meta
2023-04-27 07:36:33 +00:00
uses: docker/metadata-action@v4
2021-05-02 13:12:04 +00:00
with:
images: cupcakearmy/cryptgeon
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
2021-05-02 16:50:43 +00:00
type=semver,pattern={{major}}
2021-05-02 12:08:14 +00:00
- name: Login to DockerHub
2023-04-27 07:36:33 +00:00
uses: docker/login-action@v2
2021-05-02 12:08:14 +00:00
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
2023-04-27 07:36:33 +00:00
uses: docker/build-push-action@v4
2021-05-02 12:08:14 +00:00
with:
2022-11-04 21:10:19 +00:00
platforms: linux/amd64,linux/arm64
2021-05-02 12:08:14 +00:00
push: true
2021-05-02 13:12:04 +00:00
tags: ${{ steps.meta.outputs.tags }}