Skip to content

Commit 2cf531a

Browse files
authored
Merge pull request #3 from youngtaekiim/main
add github workflow for container image
2 parents 69c8277 + 0683a3f commit 2cf531a

File tree

5 files changed

+54
-60
lines changed

5 files changed

+54
-60
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_SETTING_SERVICE_API_URL=http://localhost:8080
2+
VITE_SETTING_SERVICE_TIMEOUT=5000

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- v*
8+
9+
env:
10+
REGISTRY: ghcr.io
11+
IMAGE_NAME: ${{ github.repository }}
12+
13+
jobs:
14+
build-and-push:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Log in to Container Registry
31+
uses: docker/login-action@v3
32+
with:
33+
registry: ${{ env.REGISTRY }}
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Build and push Docker image
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: .
41+
file: ./Dockerfile
42+
platforms: linux/amd64,linux/arm64
43+
push: true
44+
tags: |
45+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
46+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
47+

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/arm64 node:22.12.0-alpine
1+
FROM node:22.12.0-alpine
22

33
# Set environment variables for writable directories
44
ENV VITE_CACHE_DIR=/tmp/.vite

Dockerfile.arm64

Lines changed: 0 additions & 56 deletions
This file was deleted.

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)