Skip to content

Commit 3ef0246

Browse files
committed
add(actions): cms-base build
1 parent 2d69821 commit 3ef0246

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ CMS_ADMIN_USER=
77
CMS_ADMIN_PASSWORD=
88

99
CMS_RANKING_USER=ranking
10-
CMS_RANKING_PASSWORD=
10+
CMS_RANKING_PASSWORD=
11+
12+
# CMS_CONTEST_ID=1 # If CMS_CONTEST_ID not specified, contest will list all.

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CMS Base Image
2+
3+
on:
4+
push:
5+
branches: [ "master", "feature/github-actions" ]
6+
# paths:
7+
# - 'images/**'
8+
9+
jobs:
10+
base-build:
11+
name: CMS Base Image Build
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v3
16+
with:
17+
submodules: true
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v2
20+
- name: Login to Docker Hub
21+
uses: docker/login-action@v2
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
- name: CMS Base Image Build & push
26+
uses: docker/build-push-action@v3
27+
with:
28+
file: images/cms-base/Dockerfile
29+
context: .
30+
push: true
31+
tags: tico88612/cms-base:latest

0 commit comments

Comments
 (0)