-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/SUPP0RT-1109_user_tenants_commands
- Loading branch information
Showing
40 changed files
with
707 additions
and
112 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,45 @@ | ||
on: | ||
push: | ||
tags: | ||
- '*.*.*' | ||
|
||
name: Create Github Release | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
env: | ||
COMPOSER_ALLOW_SUPERUSER: 1 | ||
APP_ENV: prod | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Composer install | ||
run: | | ||
docker network create frontend | ||
docker compose run --rm phpfpm composer install --no-dev -o --classmap-authoritative | ||
docker compose run --rm phpfpm composer clear-cache | ||
rm -rf infrastructure | ||
- name: Make assets dir | ||
run: | | ||
mkdir -p ../assets | ||
- name: Create archive | ||
run: | | ||
tar \ | ||
-zcf ../assets/${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz ./* | ||
- name: Create checksum | ||
run: sha256sum ../assets/${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz > ../assets/checksum.txt | ||
|
||
- name: Create a release in GitHub and uploads assets | ||
run: | | ||
gh release create ${{ github.ref_name }} --verify-tag --generate-notes ../assets/*.* | ||
env: | ||
GITHUB_TOKEN: ${{ github.TOKEN }} | ||
shell: bash |
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,60 @@ | ||
--- | ||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
|
||
# This Action builds to os2display/* using ./infrastructure/os2display/* | ||
name: OS2display - Build docker image (develop) | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_VERSION: develop | ||
COMPOSER_ALLOW_SUPERUSER: 1 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
# Build api | ||
- name: Docker meta (API) | ||
id: meta-api | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: os2display/display-api-service | ||
|
||
- name: Build and push (API) | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./infrastructure/os2display/display-api-service/ | ||
file: ./infrastructure/os2display/display-api-service/Dockerfile | ||
build-args: | | ||
VERSION=${{ env.APP_VERSION }} | ||
push: true | ||
tags: ${{ steps.meta-api.outputs.tags }} | ||
labels: ${{ steps.meta-api.outputs.labels }} | ||
|
||
# Build nginx (depends on api build) | ||
- name: Docker meta (Nginx) | ||
id: meta-nginx | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: os2display/display-api-service-nginx | ||
|
||
- name: Build and push (Nginx) | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./infrastructure/os2display/nginx/ | ||
file: ./infrastructure/os2display/nginx/Dockerfile | ||
build-args: | | ||
APP_VERSION=${{ env.APP_VERSION }} | ||
push: true | ||
tags: ${{ steps.meta-nginx.outputs.tags }} | ||
labels: ${{ steps.meta-nginx.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,63 @@ | ||
--- | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
# This Action builds to os2display/* using ./infrastructure/os2display/* | ||
name: OS2display - Build docker image (tag) | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
env: | ||
COMPOSER_ALLOW_SUPERUSER: 1 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
# Build api | ||
- name: Docker meta (API) | ||
id: meta-api | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: os2display/display-api-service | ||
|
||
- name: Build and push (API) | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./infrastructure/os2display/display-api-service/ | ||
file: ./infrastructure/os2display/display-api-service/Dockerfile | ||
build-args: | | ||
APP_VERSION=${{ github.ref }} | ||
push: true | ||
tags: ${{ steps.meta-api.outputs.tags }} | ||
labels: ${{ steps.meta-api.outputs.labels }} | ||
|
||
# Build nginx (depends on api build) | ||
- name: Docker meta (Nginx) | ||
id: meta-nginx | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: os2display/display-api-service-nginx | ||
|
||
- name: Get the tag | ||
id: get_tag | ||
run: echo ::set-output name=git_tag::$(echo $GITHUB_REF_NAME) | ||
|
||
- name: Build and push (Nginx) | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./infrastructure/os2display/nginx/ | ||
file: ./infrastructure/os2display/nginx/Dockerfile | ||
build-args: | | ||
APP_VERSION=${{ steps.get_tag.outputs.git_tag }} | ||
push: true | ||
tags: ${{ steps.meta-nginx.outputs.tags }} | ||
labels: ${{ steps.meta-nginx.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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.