-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta-2.0' into DIGG-167-beta
Signed-off-by: Alessandro Gasperini <92717862+AlessandroGasperini@users.noreply.github.com>
- Loading branch information
Showing
39 changed files
with
3,010 additions
and
16,657 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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
Dockerfile*.* | ||
.dockerignore | ||
node_modules | ||
yarn-error.log | ||
README.md | ||
.env | ||
.env.local | ||
.env.test | ||
.env.development | ||
.yarnrc | ||
__ENV.js | ||
__ENV.js | ||
.git |
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
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
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,21 @@ | ||
name: PushRepoToGitlab | ||
on: [push] | ||
jobs: | ||
pushtogitlab: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Branch name | ||
run: echo running on branch ${GITHUB_REF_NAME} | ||
- name: Push To Gitlab | ||
env: | ||
token: ${{ secrets.GITLABTOKEN }} | ||
gitlabrepo: ${{ secrets.GITLABREPO }} | ||
run: | | ||
echo Starting to push repo to gitlab | ||
git config user.name "GitHub" | ||
git config user.email "git@digitalist.github.com" | ||
git remote set-url origin "https://oauth2:${token}@${gitlabrepo}" | ||
git push origin ${GITHUB_REF_NAME} |
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,71 @@ | ||
image: docker:20.10.16 | ||
workflow: | ||
rules: | ||
- if: $CI_COMMIT_BRANCH | ||
- if: $CI_COMMIT_TAG | ||
variables: | ||
DOCKER_HOST: tcp://docker:2376 | ||
DOCKER_TLS_CERTDIR: "/certs" | ||
DOCKER_TLS_VERIFY: 1 | ||
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client" | ||
TAG: $CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA | ||
IMAGE_NAME: "$IMAGE:$TAG" | ||
DOCKER_IMAGE: "$IMAGE_NAME" | ||
KANIKO_CACHE_ARGS: "" | ||
|
||
stages: | ||
- build | ||
- deploy | ||
image:build:release: | ||
stage: build | ||
cache: | ||
key: ${CI_COMMIT_REF_SLUG} | ||
paths: | ||
- node_modules/ | ||
- .next/cache/ | ||
rules: | ||
- if: $CI_COMMIT_BRANCH == "beta" | ||
image: | ||
name: gcr.io/kaniko-project/executor:debug | ||
entrypoint: [""] | ||
script: | ||
- mkdir -p /kaniko/.docker | ||
- cat $DOCKER_AUTH_CONFIG > /kaniko/.docker/config.json | ||
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile Dockerfile --destination $IMAGE:$TAG | ||
|
||
image:build:tagged: | ||
stage: build | ||
cache: | ||
key: ${CI_COMMIT_REF_SLUG} | ||
paths: | ||
- node_modules/ | ||
- .next/cache/ | ||
rules: | ||
- if: $CI_COMMIT_TAG | ||
image: | ||
name: gcr.io/kaniko-project/executor:debug | ||
entrypoint: [""] | ||
script: | ||
- mkdir -p /kaniko/.docker | ||
- cat $DOCKER_AUTH_CONFIG > /kaniko/.docker/config.json | ||
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile Dockerfile --destination $IMAGE:$CI_COMMIT_TAG | ||
|
||
deploy:branch: | ||
rules: | ||
- if: '$CI_COMMIT_BRANCH == "beta"' | ||
variables: | ||
IMAGE_DATAPORTAL_WEB: $IMAGE:$TAG | ||
stage: deploy | ||
trigger: | ||
project: digg/deploy-dataportal | ||
branch: main | ||
|
||
deploy:tag: | ||
rules: | ||
- if: $CI_COMMIT_TAG | ||
variables: | ||
IMAGE_DATAPORTAL_WEB: $IMAGE:$CI_COMMIT_TAG | ||
stage: deploy | ||
trigger: | ||
project: digg/deploy-dataportal | ||
branch: main |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
Oops, something went wrong.