Compare commits

...

9 Commits

Author SHA1 Message Date
Alie dea27b314c chore: delete unused scripts 2025-01-08 10:55:51 +01:00
Alie aa41a11a70 git push
Build image / build (push) Successful in 4m16s Details
2025-01-07 21:29:11 +01:00
bizcochito bf294403fc Merge pull request 'Update docker/setup-buildx-action action to v3' (#17) from renovate/docker-setup-buildx-action-3.x into master
Reviewed-on: #17
2025-01-03 10:16:42 +00:00
bizcochito 08a351c7a0 Merge pull request 'Update docker/build-push-action action to v6' (#16) from renovate/docker-build-push-action-6.x into master
Reviewed-on: #16
2025-01-03 10:13:53 +00:00
Alie b6fd11c97f fix package name
Build image / build (push) Successful in 3m45s Details
2025-01-03 11:12:24 +01:00
Renovate Bot 1146d1bdd0 Update docker/setup-buildx-action action to v3
Build image / build (pull_request) Successful in 3m7s Details
2025-01-03 10:08:24 +00:00
Renovate Bot da0538453a Update docker/build-push-action action to v6
Build image / build (pull_request) Successful in 4m2s Details
2025-01-03 10:08:19 +00:00
Alie 4849288a06 add build workflow
Build image / build (push) Has been cancelled Details
2025-01-03 11:01:57 +01:00
Alie 2c290aae7f fmt 2025-01-03 10:59:50 +01:00
6 changed files with 55 additions and 5 deletions

View File

@ -14,4 +14,4 @@ helm-charts
.idea
coverage*
*.js
dist/
dist/

View File

@ -0,0 +1,52 @@
name: Build image
on:
pull_request:
paths:
- .gitea/workflows/02_build.yaml
push:
tags:
- v*
jobs:
build:
container:
image: docker:dind
volumes:
- /data/.cache/act:/data/.cache/act
- /var/lib/docker/image:/var/lib/docker/image
- /var/lib/docker/overlay2:/var/lib/docker/overlay2
steps:
- name: Starting docker daemon
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
- name: Installing necessary packages
run: apk add nodejs git curl bash
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Docker meta
id: meta
uses: https://github.com/docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5
with:
# list of Docker images to use as base name for tags
images: |
git.fai.st/bizcochito/website
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=latest
type=ref,event=branch
type=semver,pattern={{raw}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
- name: Login to fai.st docker registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: git.fai.st
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Build and push
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@ -16,8 +16,6 @@
"scripts": {
"build": "tsc -p .",
"start": "NODE_PATH=./dist node dist/index.js",
"buildandpush": "docker buildx build --push --platform=linux/amd64,linux/arm64 -t git.fai.st/bizcochito/bizcochito.onion .",
"deploy": "npm run buildandpush && sleep 3 && kubectl rollout restart deploy/web -n web",
"local": "npm run build && npm run start",
"dev": "docker compose watch"
}

View File

@ -2,4 +2,4 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "helpers:pinGitHubActionDigests"],
"rangeStrategy": "pin"
}
}

View File

@ -1,5 +1,5 @@
import type { Request, Response } from "express";
import { readdirSync } from "fs";
import type { Response, Request } from "express";
function ad() {
const ad_list = readdirSync("static/ads/hor/");

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB