-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from Z-100/hotfix/reponames
Hotfix/reponames
- Loading branch information
Showing
7 changed files
with
32,007 additions
and
11,040 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
build | ||
.dockerignore | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build and push latest dev version to dockerhub | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
DH_USER: "" | ||
DH_PASS: "" | ||
|
||
jobs: | ||
build-images: | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build images | ||
run: | | ||
echo "Building images" | ||
docker build -t z100/vayan:latest . | ||
- name: Push images | ||
run: | | ||
echo "Login to dockerhub" | ||
docker login -u ${{ secrets.DH_USER }} -p ${{ secrets.DH_PASS }} | ||
echo "Pushing images" | ||
docker push z100/vayan:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build and push new version to dockerhub | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
DH_USER: "" | ||
DH_PASS: "" | ||
|
||
jobs: | ||
build-images: | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get commit SHA | ||
run: | | ||
echo "COMMIT_SHA_SHORT=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV | ||
- name: Build images | ||
run: | | ||
echo "Building images" | ||
docker build -t z100/vayan:${{ env.COMMIT_SHA_SHORT }} . | ||
- name: Push images | ||
run: | | ||
echo "Login to dockerhub" | ||
docker login -u ${{ secrets.DH_USER }} -p ${{ secrets.DH_PASS }} | ||
echo "Pushing images" | ||
docker push z100/vayan:${{ env.COMMIT_SHA_SHORT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:20-alpine | ||
|
||
WORKDIR /app | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
COPY package.json package-lock.json ./ | ||
|
||
RUN npm ci --silent && npm i -g serve --silent | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
CMD ["serve", "-s", "build"] |
Oops, something went wrong.