Skip to content

Commit

Permalink
Add workflow scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Collingine committed Sep 22, 2024
1 parent b2509a8 commit 990040e
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish (Development)

on:
push:
branches:
- main

jobs:
publish_to_backend:
name: "Publish to Backend"

runs-on: [self-hosted, Linux]

steps:
- name: checkout engine without LFS
uses: actions/checkout@v4
with:
lfs: true
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull ProjectSystem docker image
run: docker pull ghcr.io/nginetechnologies/projectsystem-dev:latest
- name: Publish to backend
run: |
docker run -v ${{ github.workspace }}:/repo ghcr.io/nginetechnologies/projectsystem-dev:latest +register_backend_assets /repo/Assets.nassetdb
29 changes: 29 additions & 0 deletions .github/workflows/deploy_live.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish (Production)

on:
push:
branches:
- live

jobs:
publish_to_backend:
name: "Publish to Backend"

runs-on: [self-hosted, Linux]

steps:
- name: checkout engine without LFS
uses: actions/checkout@v4
with:
lfs: true
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull ProjectSystem docker image
run: docker pull ghcr.io/nginetechnologies/projectsystem:latest
- name: Publish to backend
run: |
docker run -v ${{ github.workspace }}:/repo ghcr.io/nginetechnologies/projectsystem:latest +register_backend_assets /repo/Assets.nassetdb

0 comments on commit 990040e

Please sign in to comment.