Updated build
All checks were successful
Build Website / Build NPM Project (push) Successful in 29s
Build Website / Build & Push Dockerfile (push) Successful in 2m12s

This commit is contained in:
Zakary Timson 2023-11-24 13:15:22 -05:00
parent 718367fff1
commit 6ccae9aa1f
3 changed files with 28 additions and 92 deletions

View File

@ -4,12 +4,12 @@
## Issues ## Issues
<!-- Issues this PR will address --> <!-- Issues this PR will address -->
- closes #___ - closes #___
- owner/repo#___ - owner/repo#___
## Checklist ## Checklist
<!-- Compelte after creating PR --> <!-- Compelte after creating PR -->
- [ ] Linked issues - [ ] Linked issues
- [ ] Reviewed changes - [ ] Reviewed changes
- [ ] Updated comments/documentation - [ ] Updated comments/documentation

View File

@ -1,86 +0,0 @@
name: Continues Integration
on: [push, workflow_dispatch]
jobs:
dependencies:
name: Install dependencies
container:
image: node:latest
volumes:
- /mnt/swarm/gitea/runner/cache/${{ github.workspace }}:{{ github.workspace }}
- /mnt/swarm/gitea/runner/cache:/cache
steps:
- name: Checkout repository
uses: ztimson/actions/git/checkout@develop
- name: Restore cache
uses: ztimson/actions/cache/restore@develop
with:
key: node_modules
- name: Install dependencies
run: npm install
- name: Cache node_modules
uses: ztimson/actions/cache@develop
with:
key: node_modules
pattern: package-lock.json node_modules/*
build-dev:
name: Build
needs: dependencies
container:
image: node:latest
volumes:
- /mnt/swarm/gitea/runner/cache:/cache
steps:
- name: Checkout repository
uses: ztimson/actions/git/checkout@develop
- name: Restore cache
uses: ztimson/actions/cache/restore@develop
with:
key: node_modules
- name: Setup Angular
run: npm link @angular/cli
- name: Compile Angular
run: npm run build:dev
build-prod:
name: Build production
needs: dependencies
container:
image: node:latest
volumes:
- /mnt/swarm/gitea/runner/cache:/cache
steps:
- name: Checkout repository
uses: ztimson/actions/git/checkout@develop
- name: Restore cache
uses: ztimson/actions/cache/restore@develop
with:
key: node_modules
- name: Setup Angular
run: npm link @angular/cli
- name: Compile Angular
run: npm run build:dev
docker:
name: Build docker image
steps:
- name: Checkout repository
uses: ztimson/actions/git/checkout@develop
- name: Build docker image
uses: ztimson/actions/docker/build@develop
- name: Push docker image
uses: ztimson/actions/docker/push@develop
with:
registry_pass: ${{secrets.DEPLOY_TOKEN}}

22
.github/workflows/website.yaml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Build Website
run-name: Build Website
on:
push:
jobs:
build:
name: Build NPM Project
uses: ztimson/actions/.github/workflows/npm.yaml@develop
with:
repository: ${{github.server_url}}/${{github.repository}}.git
artifact_name: website
artifacts: dist
publish:
name: Build & Push Dockerfile
needs: build
uses: ztimson/actions/.github/workflows/docker.yaml@develop
with:
repository: ${{github.server_url}}/${{github.repository}}.git
pass: ${{secrets.DEPLOY_TOKEN}}