Skip to content

Commit

Permalink
Update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
quangnhnhut123 committed Sep 26, 2024
1 parent 0d4f2b1 commit 9e7a767
Show file tree
Hide file tree
Showing 25 changed files with 56 additions and 149 deletions.
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
GOLANG_VERSION=1.23
GOTENBERG_VERSION=8
GOTENBERG_USER_GID=1001
GOTENBERG_USER_UID=1001
NOTO_COLOR_EMOJI_VERSION=v2.042 # See https://github.com/googlefonts/noto-emoji/releases.
PDFTK_VERSION=v3.3.3 # See https://gitlab.com/pdftk-java/pdftk/-/releases - Binary package.
GOLANGCI_LINT_VERSION=v1.60.3
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .github/dependabot.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/stale.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/build_push_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and Push Docker Image

on:
push:
branches:
- v8

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Load environment variables from .env
uses: falti/[email protected]
with:
path: .env

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push custom Docker image
uses: docker/build-push-action@v6
with:
context: .
file: build/Dockerfile.custom
push: true
tags: |
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:latest-custom
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.sha }}-custom
build-args: |
GOLANG_VERSION=${{ env.GOLANG_VERSION }}
GOTENBERG_VERSION=${{ env.GOTENBERG_VERSION }}
GOTENBERG_USER_GID=${{ env.GOTENBERG_USER_GID }}
GOTENBERG_USER_UID=${{ env.GOTENBERG_USER_UID }}
NOTO_COLOR_EMOJI_VERSION=${{ env.NOTO_COLOR_EMOJI_VERSION }}
PDFTK_VERSION=${{ env.PDFTK_VERSION }}
26 changes: 0 additions & 26 deletions .github/workflows/continuous_delivery.yml

This file was deleted.

95 changes: 0 additions & 95 deletions .github/workflows/continuous_integration.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build: ## Build the Gotenberg's Docker image
-f build/Dockerfile .

.PHONY: build-custom
build: ## Build the custom Gotenberg's Docker image
build-custom: ## Build the custom Gotenberg's Docker image
docker build \
--build-arg GOLANG_VERSION=$(GOLANG_VERSION) \
--build-arg GOTENBERG_VERSION=$(GOTENBERG_VERSION) \
Expand Down
Binary file added fonts/BIZUDPGothic-Bold.ttf
Binary file not shown.
Binary file added fonts/BIZUDPGothic-Regular.ttf
Binary file not shown.
Binary file added fonts/MSGOTHIC.TTF
Binary file not shown.
Binary file added fonts/MSMINCHO.TTF
Binary file not shown.
Binary file added fonts/NotoSansJP-VariableFont_wght.ttf
Binary file not shown.
Binary file added fonts/NotoSerifJP-Black.otf
Binary file not shown.
Binary file added fonts/NotoSerifJP-Bold.otf
Binary file not shown.
Binary file added fonts/NotoSerifJP-ExtraLight.otf
Binary file not shown.
Binary file added fonts/NotoSerifJP-Light.otf
Binary file not shown.
Binary file added fonts/NotoSerifJP-Medium.otf
Binary file not shown.
Binary file added fonts/NotoSerifJP-Regular.otf
Binary file not shown.
Binary file added fonts/NotoSerifJP-SemiBold.otf
Binary file not shown.
Binary file added fonts/ShipporiMincho-Bold.ttf
Binary file not shown.
Binary file added fonts/ShipporiMincho-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/ShipporiMincho-Medium.ttf
Binary file not shown.
Binary file added fonts/ShipporiMincho-Regular.ttf
Binary file not shown.
Binary file added fonts/ShipporiMincho-SemiBold.ttf
Binary file not shown.

0 comments on commit 9e7a767

Please sign in to comment.