feat(ci/cd): dockerize and add traefik labels

This commit is contained in:
Pihkaal
2024-10-17 21:41:22 +02:00
parent 7ca05662e4
commit 88a50ad020
4 changed files with 70 additions and 0 deletions

28
.github/workflows/docker-build.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
run: |
docker build -t pihkaal/lilou-cat:latest .
docker push pihkaal/lilou-cat:latest