2025-02-19 10:11:18 +01:00
|
|
|
name: Build Docker Image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
2025-02-19 10:30:05 +01:00
|
|
|
- frontend/package.json
|
|
|
|
- frontend/bun.lock
|
|
|
|
- .gitea/bunPipeline/Dockerfile
|
2025-02-19 10:11:18 +01:00
|
|
|
pull_request:
|
2025-02-19 10:30:05 +01:00
|
|
|
paths:
|
|
|
|
- frontend/package.json
|
|
|
|
- frontend/bun.lock
|
|
|
|
- .gitea/bunPipeline/Dockerfile
|
2025-02-19 10:11:18 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2025-02-19 10:16:43 +01:00
|
|
|
runs-on: vps-4
|
2025-02-19 10:11:18 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
2025-02-19 10:22:40 +01:00
|
|
|
- name: Login to Docker.io Registry
|
2025-02-19 10:25:16 +01:00
|
|
|
uses: https://git.kjan.de/actions/login-action@v3 # v3
|
2025-02-19 10:22:40 +01:00
|
|
|
with:
|
|
|
|
registry: git.simonis.lol
|
|
|
|
username: ${{ vars.DOCKER_USER }}
|
2025-02-19 10:27:06 +01:00
|
|
|
password: ${{ vars.DOCKER_PW }}
|
2025-02-19 10:22:40 +01:00
|
|
|
|
2025-02-19 10:11:18 +01:00
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
2025-02-19 10:33:12 +01:00
|
|
|
context: frontend
|
2025-02-19 10:11:18 +01:00
|
|
|
file: .gitea/bunPipeline/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: git.simonis.lol/projects/bun-casino:latest # Change this to your repo
|
|
|
|
cache-from: type=registry,ref=git.simonis.lol/projects/bun-casino:latest
|
|
|
|
cache-to: type=inline
|