41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Build Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- package.json
|
|
- bun.lockb
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: vps-4
|
|
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
|
|
|
|
- name: Login to Docker.io Registry
|
|
uses: https://git.kjan.de/actions/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
|
|
with:
|
|
registry: git.simonis.lol
|
|
username: ${{ vars.DOCKER_USER }}
|
|
password: ${{ vars.DOCKER_PASS }}
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .gitea/bunPipeline
|
|
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
|