website/.gitea/workflows/pipeline.yml

33 lines
743 B
YAML
Raw Normal View History

2024-10-21 12:52:40 -04:00
name: Build and Deploy Docker Image
on:
push:
branches:
- main
jobs:
build:
2024-10-21 13:11:04 -04:00
runs-on: ubuntu-latest
2024-10-21 12:52:40 -04:00
steps:
- name: Checkout code
2024-10-21 13:04:09 -04:00
uses: actions/checkout@v4
2024-10-21 12:52:40 -04:00
- name: Set up Docker Buildx
2024-10-21 13:20:17 -04:00
uses: docker/setup-buildx-action@v3
2024-10-21 12:52:40 -04:00
- name: Log in to Gitea Container Registry
2024-10-21 13:20:17 -04:00
uses: docker/login-action@v1
with:
password: ${{ secrets.GITEA_PASSWORD }}
username: ${{ secrets.GITEA_USERNAME }}
registry: ${{ secrets.GITEA_REGISTRY }}
2024-10-21 12:52:40 -04:00
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
2024-10-21 13:04:09 -04:00
tags: ${{ secrets.GITEA_REGISTRY }}/smig/dotechbro-website:latest
2024-10-21 12:52:40 -04:00