treetrail-frontend/.forgejo/workflows/build.yaml

40 lines
840 B
YAML
Raw Normal View History

2024-10-25 13:51:15 +02:00
on:
push:
2024-10-19 12:22:57 +02:00
jobs:
2024-10-19 12:29:53 +02:00
build:
2024-10-19 12:22:57 +02:00
runs-on: container
steps:
- uses: actions/checkout@v4
2024-10-19 12:22:57 +02:00
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build package (transpile ts => js)
run: ng build
- name: Build container
2024-10-25 13:51:15 +02:00
uses: action
with:
image: treetrail-frontend
#tags: foo # v1 ${{ github.sha }}
containerfiles: |
./Containerfile
2024-10-25 13:51:15 +02:00
- uses: actions/push-to-registry@v2
with:
registry: "docker://${{ vars.REPOSITORY }}"
image: treetrail-frontend
tags: latest