Add workflow. #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |