Files
website/.gitea/workflows/docker.yml
T
alex bd381fbed2
Build and Publish Docker Image / build (push) Successful in 26s
Build and Publish Docker Image / deploy (push) Successful in 2s
fix publish
2026-09-07 14:34:17 -04:00

37 lines
988 B
YAML

name: Build and Publish Docker Image
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker Image
run: |
docker build -t git.alexav.gg/${{ gitea.repository }}:latest .
docker build -t git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} .
- name: Login to Gitea Registry
run: |
echo "${{ secrets.RUNNER_TOKEN }}" | docker login git.alexav.gg -u ${{ gitea.actor }} --password-stdin
- name: Push Docker Image
run: |
docker push git.alexav.gg/${{ gitea.repository }}:latest
docker push git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }}
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: https://git.alexav.gg/alex/deploy-action@main
with:
token: ${{ secrets.RUNNER_TOKEN }}
task: website_deploy