test: main deploy
Some checks failed
Deploy to Production / build-and-push (push) Failing after 2m2s
Deploy to Production / deploy (push) Has been skipped

This commit is contained in:
2026-01-04 02:20:22 -06:00
parent 563787c8cb
commit 67791ba6a3

View File

@@ -5,8 +5,8 @@ on:
branches: [ "main" ] branches: [ "main" ]
env: env:
REGISTRY: ghcr.io REGISTRY: gitea.sashabayda.ca
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ gitea.repository }}
jobs: jobs:
build-and-push: build-and-push:
@@ -23,8 +23,8 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITEA_TOKEN }}
- name: Extract metadata (tags, labels) for Docker - name: Extract metadata (tags, labels) for Docker
id: meta id: meta
@@ -55,10 +55,10 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }} key: ${{ secrets.SSH_PRIVATE_KEY }}
script: | script: |
# Login to registry # Login to registry
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin echo ${{ secrets.GITEA_TOKEN }} | docker login gitea.sashabayda.ca -u ${{ gitea.actor }} --password-stdin
# Pull new image # Pull new image
docker pull ghcr.io/${{ env.IMAGE_NAME }}:latest docker pull gitea.sashabayda.ca/${{ gitea.repository }}:latest
# Stop and remove existing container # Stop and remove existing container
docker stop resume-frontend || true docker stop resume-frontend || true
@@ -69,7 +69,7 @@ jobs:
--name resume-frontend \ --name resume-frontend \
--restart unless-stopped \ --restart unless-stopped \
-p 80:80 \ -p 80:80 \
ghcr.io/${{ env.IMAGE_NAME }}:latest gitea.sashabayda.ca/${{ gitea.repository }}:latest
# Cleanup unused images # Cleanup unused images
docker image prune -f docker image prune -f