updated workflows
Some checks failed
Build and Deploy NextJS SculptedArc Website / build-and-deploy (push) Failing after 2m8s
Some checks failed
Build and Deploy NextJS SculptedArc Website / build-and-deploy (push) Failing after 2m8s
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
name: Build and Deploy NextJS SculptedArc Website
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
|
||||
build-and-deploy:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: sh
|
||||
@@ -16,19 +16,19 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: actions/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
# 1. Log into your self-hosted Gitea container storage layer
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: actions/login-action@v3
|
||||
# 1. Log into your self-hosted gitea container storage layer
|
||||
- name: Log in to gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.sculpted-arc.co.uk # Change to your Gitea domain
|
||||
registry: gitea.sculpted-arc.co.uk # Change to your gitea domain
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.TOKEN_GITEA }}
|
||||
password: ${{ secrets.TOKEN_GITEA }} # Store a personal access token in your repo secrets for security
|
||||
|
||||
# 2. Build the Dockerfile and upload the compiled app image
|
||||
- name: Build and Push Docker Image
|
||||
uses: actions/build-push-action@v5
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/james/docker/sculpted-arc-site
|
||||
|
||||
# Authenticate the host machine to pull from Gitea's registry
|
||||
# Authenticate the host machine to pull from gitea's registry
|
||||
docker login -u ${{ gitea.actor }} -p ${{ secrets.TOKEN_GITEA }} gitea.sculpted-arc.co.uk
|
||||
|
||||
# Pull down the fresh image we just built and restart gracefully
|
||||
Reference in New Issue
Block a user