Files
blog/.gitea/workflows/build-and-publish.yml
T
alex 035db943ed
Build and Publish Docker Image / build (push) Failing after 28s
add docker package
2026-09-06 23:43:11 -04:00

28 lines
772 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 }}