Compare commits

...

2 Commits

Author SHA1 Message Date
Pihkaal
a71662449f chore(docker): fix typo in container name
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m35s
2025-12-22 05:20:14 +01:00
Pihkaal
ac87152124 github -> gitea
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m26s
2025-12-21 20:11:48 +01:00
3 changed files with 32 additions and 30 deletions

View File

@@ -0,0 +1,29 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.pihkaal.xyz
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push Docker image
run: |
docker build -t git.pihkaal.xyz/pihkaal/simple-qr:latest .
docker push git.pihkaal.xyz/pihkaal/simple-qr:latest

View File

@@ -1,28 +0,0 @@
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/simple-qr:latest .
docker push pihkaal/simple-qr:latest

View File

@@ -1,6 +1,7 @@
services:
simple-qr:
image: pihkaal/simple-qr:latest
app:
container_name: simple-qr
image: git.pihkaal.xyz/pihkaal/simple-qr:latest
networks:
- web
labels: