Update docker-compose.yml #15
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
name: HANA-CI PDF SIT Container | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Build Docker Image | |
run: | | |
export DOCKER_COMPOSE_PATH=./docker-compose.yml | |
docker buildx build \ | |
--build-arg DB_USERNAME=${{ secrets.DB_USERNAME }} \ | |
--build-arg DB_PASSWORD=${{ secrets.DB_PASSWORD }} \ | |
--build-arg ASPOSE_CLOUD_CLIENT_ID=${{ secrets.ASPOSE_CLOUD_CLIENT_ID }} \ | |
--build-arg ASPOSE_CLOUD_TOKEN=${{ secrets.ASPOSE_CLOUD_TOKEN }} \ | |
--build-arg ADOBE_CLIENT_ID=${{ secrets.ADOBE_CLIENT_ID }} \ | |
--build-arg FTP_USERNAME=${{ secrets.FTP_USERNAME }} \ | |
--build-arg FTP_USERPASS=${{ secrets.FTP_USERPASS }} \ | |
--build-arg FTP_SERVER=${{ secrets.FTP_SERVER }} \ | |
--build-arg FTP_ROOT=${{ secrets.FTP_ROOT }} \ | |
--build-arg ILOVEPDF_PUBLIC_KEY=${{ secrets.ILOVEPDF_PUBLIC_KEY }} \ | |
--build-arg ILOVEPDF_SECRET_KEY=${{ secrets.ILOVEPDF_SECRET_KEY }} \ | |
-t hanaci-app-pdf-sit:latest \ | |
-f Dockerfile/Dockerfile.hana-app-pdf.sit \ | |
. | |
docker buildx build \ | |
--build-arg DB_USERNAME=${{ secrets.DB_USERNAME }} \ | |
--build-arg DB_PASSWORD=${{ secrets.DB_PASSWORD }} \ | |
--build-arg ASPOSE_CLOUD_CLIENT_ID=${{ secrets.ASPOSE_CLOUD_CLIENT_ID }} \ | |
--build-arg ASPOSE_CLOUD_TOKEN=${{ secrets.ASPOSE_CLOUD_TOKEN }} \ | |
--build-arg ADOBE_CLIENT_ID=${{ secrets.ADOBE_CLIENT_ID }} \ | |
--build-arg FTP_USERNAME=${{ secrets.FTP_USERNAME }} \ | |
--build-arg FTP_USERPASS=${{ secrets.FTP_USERPASS }} \ | |
--build-arg FTP_SERVER=${{ secrets.FTP_SERVER }} \ | |
--build-arg FTP_ROOT=${{ secrets.FTP_ROOT }} \ | |
--build-arg ILOVEPDF_PUBLIC_KEY=${{ secrets.ILOVEPDF_PUBLIC_KEY }} \ | |
--build-arg ILOVEPDF_SECRET_KEY=${{ secrets.ILOVEPDF_SECRET_KEY }} \ | |
-t hanaci-app-pdf-sit:latest \ | |
-f Dockerfile/Dockerfile.hana-instance.sit \ | |
. | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Push Docker Image to Registry | |
run: | | |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PAT }} | |
docker push nicklas373/hanaci-app-pdf-sit:latest | |
docker push nicklas373/hanaci-instance-sit:latest | |