-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83ce544
commit 75f05dc
Showing
5 changed files
with
104 additions
and
88 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,38 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build and Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run tests | ||
run: docker-compose -f action-services.yml run portal /data/run-tests.sh | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }} | ||
tags: | | ||
type=ref,event=branch | ||
# set latest tag for main | ||
type=raw,value=latest,enable=${{ github.ref_name == 'main' }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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,66 @@ | ||
services: | ||
db: | ||
image: mariadb:10 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: r00tp@ss! | ||
MYSQL_DATABASE: test | ||
MYSQL_USER: developer_portal | ||
MYSQL_PASSWORD: developer_portal | ||
|
||
redis: | ||
image: redis:latest | ||
|
||
api: | ||
image: silintl/apiaxle-js:1.15.2 | ||
environment: | ||
REDIS_HOST: redis | ||
REDIS_PORT: 6379 | ||
DEBUG_MODE: 'false' | ||
API_NAME_REGEX: "^(.+?)\\.api\\." | ||
NODE_ENV: production | ||
depends_on: | ||
- redis | ||
ports: | ||
- "80" | ||
command: api 80 | ||
|
||
proxy: | ||
image: silintl/apiaxle-js:1.15.2 | ||
environment: | ||
REDIS_HOST: redis | ||
REDIS_PORT: 6379 | ||
DEBUG_MODE: 'false' | ||
API_NAME_REGEX: "^(.+?)\\.api\\." | ||
NODE_ENV: production | ||
depends_on: | ||
- api | ||
- redis | ||
ports: | ||
- "80" | ||
command: proxy 80 -q | ||
|
||
portal: | ||
build: | ||
image: silintl/developer-portal | ||
dockerfile_path: ./Dockerfile | ||
cached: true | ||
depends_on: | ||
- db | ||
- proxy:apiaxle.api.proxy | ||
- proxy:test.api.proxy | ||
- api | ||
environment: | ||
MYSQL_HOST: db | ||
MYSQL_DATABASE: test | ||
MYSQL_USER: developer_portal | ||
MYSQL_PASSWORD: developer_portal | ||
APIAXLE_ENDPOINT: http://apiaxle.api.proxy/v1 | ||
APIAXLE_KEY: developer-portal-dev-key | ||
APIAXLE_SECRET: developer-portal-dev-secret | ||
APIAXLE_SSL_VERIFYPEER: false | ||
GOOGLE_OAUTH_ENABLED: false | ||
SAML_ENTITY_ID: http://developer-portal.local/simplesaml/module.php/saml/sp/metadata.php/default-sp | ||
SAML_ADMIN_PASSWORD: dummy-for-tests-q6.eYWtfLF-BTQXf-OktD5lVFCOFyC4B | ||
SAML_SECRET_SALT: dummy-for-tests-Ac4MTgO9UJ6_wpXXKc6EGU_.gWNNkdMe | ||
SAML_IDP: NONE | ||
working_dir: /data |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.