feat: containerize
This commit is contained in:
parent
98651de3fa
commit
7e0d4e5f3b
14 changed files with 956 additions and 127 deletions
31
.gitea/workflow/pipeline.yml
Normal file
31
.gitea/workflow/pipeline.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
version: "1"
|
||||
name: Build and Deploy Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
run: echo "${{ secrets.GITEA_PASSWORD }}" | docker login ${{ secrets.GITEA_REGISTRY }} -u ${{ secrets.GITEA_USERNAME }} --password-stdin
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ secrets.GITEA_REGISTRY }}/dotechbro-website:latest
|
||||
|
||||
- name: Log out from Gitea Container Registry
|
||||
run: docker logout ${{ secrets.GITEA_REGISTRY }}
|
Loading…
Add table
Add a link
Reference in a new issue