boring.tools-poc/.gitea/workflows/main.yaml
Lars Hampe f1b4560d66
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m47s
ci: rename uses to run on website docker step
2024-09-28 14:30:03 +02:00

39 lines
843 B
YAML

name: Build and Push Docker Image
run-name: ${{ gitea.actor }}
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.29
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Set docker chmod (temp solution)
run: sudo chmod 666 /var/run/docker.sock
- name: Docker - Login
uses: docker/login-action@v1
with:
registry: git.hashdot.co
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Website
run: bun docker:website