website/.gitea/workflows/pipeline.yml

33 lines
714 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:
runs-on: ubuntu-docker
2024-10-21 12:52:40 -04:00
steps:
2024-10-21 12:52:40 -04:00
- 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
uses: docker/setup-buildx-action@v2
2024-10-21 12:52:40 -04:00
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
password: ${{ secrets.PASSWORD }}
username: ${{ secrets.USERNAME }}
registry: git.thecodedom.com
2024-10-21 12:52:40 -04:00
- name: Build and push Docker image
uses: docker/build-push-action@v6
2024-10-21 12:52:40 -04:00
with:
context: .
push: true
tags: git.thecodedom.com/dotechbro/dotechbro-website:latest
2024-10-21 12:52:40 -04:00