Files
ivanch.me/.gitea/workflows/main.yaml
Jose Henrique 1a4e494ce1
Some checks failed
Homepage Build and Deploy / Build Homepage Image (push) Failing after 1s
Homepage Build and Deploy / Deploy Homepage (push) Has been skipped
updating pipeline
2026-07-10 10:33:56 -03:00

45 lines
1.1 KiB
YAML

name: Homepage Build and Deploy
on:
push:
branches:
- main
workflow_dispatch: {}
env:
REGISTRY_HOST: git.ivanch.me
REGISTRY_USERNAME: ivanch
IMAGE_NAME: ${{ env.REGISTRY_HOST }}/ivanch/mainpage
jobs:
build:
name: Build Homepage Image
runs-on: ubuntu-amd64
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build and Push Multi-Arch Image
uses: ivanch/pipeline-actions/build-and-push@main
with:
image: ${{ env.IMAGE_NAME }}
registry_password: ${{ secrets.REGISTRY_PASSWORD }}
ssh_key: ${{ secrets.SSH_KEY_DOCKERBUILD }}
deploy:
name: Deploy Homepage
runs-on: ubuntu-amd64
needs: build
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Recreate Container
uses: ivanch/pipeline-actions/ssh-deploy@main
with:
ssh_host: ${{ secrets.HOST }}
ssh_username: ${{ secrets.USERNAME }}
ssh_key: ${{ secrets.KEY }}
ssh_port: ${{ secrets.PORT }}
remote_dir: ${{ secrets.DIR }}