feat(release): Adds docker support
This commit is contained in:
parent
a3c1bae6db
commit
68368ab916
7 changed files with 79 additions and 3 deletions
38
.forgejo/workflows/build-release-container.yaml
Normal file
38
.forgejo/workflows/build-release-container.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
name: build-container
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- release-*
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.JS 20.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 20.x
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Run build
|
||||
run: npm run build
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: hub.docker.com
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: neintonine/pnp-scheduler:release
|
||||
context: .
|
||||
Loading…
Add table
Add a link
Reference in a new issue