rename preview-mode to preview_mode so it works with the nginx config #111
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: deploy-nye-julianjark.no | |
on: | |
push: | |
branches: | |
- "main" | |
defaults: | |
run: | |
working-directory: apps/nye-julianjark.no | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
context: "{{defaultContext}}:apps/nye-julianjark.no" | |
platforms: linux/amd64 | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/nye-julianjark.no:latest | |
- name: Deploy to unRaid server | |
run: bash ./scripts/updateLatestDockerOnUnraid.bash | |
env: | |
CONTAINER_NAME: nye-julianjark.no | |
UNRAID_HTTP_USERNAME: ${{ secrets.UNRAID_HTTP_USERNAME }} | |
UNRAID_HTTP_PASSWORD: ${{ secrets.UNRAID_HTTP_PASSWORD }} | |
UNRAID_USERNAME: ${{ secrets.UNRAID_USERNAME }} | |
UNRAID_PASSWORD: ${{ secrets.UNRAID_PASSWORD }} |