Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Mar 22, 2021
1 parent 474e903 commit 48661f5
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 36 deletions.
40 changes: 36 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
yarn install --frozen-lockfile
yarn build
# yarn test
- uses: actions/upload-artifact@v2
with:
name: build
path: build
- uses: actions/upload-artifact@v2
with:
name: node_modules
path: node_modules

check_if_version_upgraded:
name: Check if version upgrade
Expand Down Expand Up @@ -75,10 +83,15 @@ jobs:
fi
OUT=$(echo "$OUT" | awk '{print tolower($0)}')
echo ::set-output name=docker_tags::$OUT
- uses: actions/download-artifact@v2
with:
name: build
- uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.step1.outputs.docker_tags }}
file: Dockerfile.ci


build_keycloak_theme:
name: Build keycloak theme
Expand All @@ -90,10 +103,13 @@ jobs:
with:
ref: ${{ needs.check_if_version_upgraded.outputs.branch }}
- uses: actions/setup-node@v1
- run: |
yarn install --frozen-lockfile
yarn build
npx build-keycloak-theme
- uses: actions/download-artifact@v2
with:
name: build
- uses: actions/download-artifact@v2
with:
name: node_modules
- run: npx build-keycloak-theme --external-assets
- name: Upload keycloak theme
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -153,6 +169,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy_on_gh_pages:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: build
- uses: actions/[email protected]
with:
node-version: '15'
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -y -p [email protected] gh-pages -d build -u "github-actions-bot <[email protected]>"

debug:
runs-on: ubuntu-latest
steps:
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/gh_pages.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# build environment
FROM node:14.16.0-alpine as build
WORKDIR /app
COPY build build

# production environment
FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"homepage": "https://garronej.github.io/keycloakify-demo-app",
"name": "keycloakify-demo-app",
"version": "0.2.2",
"version": "0.2.3",
"description": "A demo project for keycloakify",
"repository": {
"type": "git",
Expand Down Expand Up @@ -31,7 +31,7 @@
"@types/node": "^12.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"keycloakify": "^0.3.7",
"keycloakify": "^0.3.8",
"node-sass": "^5.0.0",
"react-scripts": "4.0.2",
"typescript": "^4.1.2"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7198,10 +7198,10 @@ jsprim@^1.2.2:
array-includes "^3.1.2"
object.assign "^4.1.2"

keycloakify@^0.3.7:
version "0.3.7"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-0.3.7.tgz#dde030aa66fc6807d3333093fe2295c8d1d5fe1a"
integrity sha512-ua+M3esMQPrr3rUg7WXfWn/3ZbyBMUe5SjKLN5POmSuQL2jcoMmFAzvDj1LJuXCjgxXQc0csTKVcvjWHGohEBA==
keycloakify@^0.3.8:
version "0.3.8"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-0.3.8.tgz#67a0621ac781d61755ee4aa219d47e75d60ae322"
integrity sha512-NfE7qUEuG8jUjRuNZaH6TB8IAEiTC2vzHkKpqMA9vPthrNEsZhVD2Bf1m+l+Vo1umr5sAhp5C3PgVNERXURVtw==
dependencies:
cheerio "^1.0.0-rc.5"
evt "2.0.0-beta.15"
Expand Down

0 comments on commit 48661f5

Please sign in to comment.