Skip to content

Commit

Permalink
v2: fix container and backport CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yamader committed Apr 14, 2024
1 parent 53d01a5 commit 65a50cf
Show file tree
Hide file tree
Showing 4 changed files with 1,176 additions and 861 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: container

on:
push:
branches: [master]
branches: [v2]
workflow_dispatch:

env:
Expand All @@ -13,34 +13,24 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/metadata-action@v4
- uses: actions/checkout@v4
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: latest=true
- uses: docker/login-action@v2
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v3
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm/v7
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# deploy:
# runs-on: takoyaki-deploy-pod
# steps:
# - uses: docker/login-action@v1
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - run:
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:lts-alpine as builder
RUN apk add --no-cache git && \
npm i -g pnpm
corepack enable pnpm
WORKDIR /work
COPY pnpm-lock.yaml ./
RUN pnpm fetch
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"typescript": "4.9.4",
"vite": "4.0.3"
},
"packageManager": "[email protected]",
"scripts": {
"build": "dotenv run-s stage:kit stage:404 stage:sitemap stage:beautify",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
Expand Down
Loading

0 comments on commit 65a50cf

Please sign in to comment.