From 808dec0baae02cf291c4c2ebf187ed5d7ac061bb Mon Sep 17 00:00:00 2001 From: Kosala Gangabadage Date: Wed, 28 Sep 2022 21:18:59 -0400 Subject: [PATCH 1/4] Platformer Workflow updated --- .../platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml b/.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml index 02bee6f2..84b45385 100644 --- a/.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml +++ b/.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml @@ -22,7 +22,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.DOCKER_PASSWORD_A216CF89_BD2F_471B_94D0_E37D05D5EDF4 }} - name: Build the Docker image - run: docker build --tag ${SERVICE_NAME}:stag-ui-${{steps.event-version.outputs.SOURCE_TAG }} --file ./frontend/Dockerfile ./frontend/ --build-arg API_BASE_URL=http://api.incident.ecstag.opensource.lk + run: docker build --tag ${SERVICE_NAME}:stag-ui-${{steps.event-version.outputs.SOURCE_TAG }} --file ./frontend/Dockerfile ./frontend/ --build-arg API_BASE_URL=https://api.incident.ecstag.opensource.lk - name: GitHub Image Push run: docker push $SERVICE_NAME:stag-ui-${{steps.event-version.outputs.SOURCE_TAG }} - name: Platformer Deploy From f266efceb4fc731489451a43091e4d094013a314 Mon Sep 17 00:00:00 2001 From: Yujith Isura <42527969+YujithIsura@users.noreply.github.com> Date: Thu, 29 Sep 2022 06:57:33 +0530 Subject: [PATCH 2/4] Create platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml --- ...r-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml diff --git a/.github/workflows/platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml b/.github/workflows/platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml new file mode 100644 index 00000000..1616e93a --- /dev/null +++ b/.github/workflows/platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml @@ -0,0 +1,36 @@ +name: Platformer Generated api-stag-ui Build +'on': + push: + tags: + - stag* +jobs: + build: + runs-on: + - ubuntu-latest + env: + SERVICE_NAME: ghcr.io/eclk/incidentmanagement + CONTAINER_REGISTRY: ghcr.io + steps: + - uses: actions/checkout@v2 + - name: Set Version + id: event-version + run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ${{ env.CONTAINER_REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.DOCKER_PASSWORD_C86AF892_FFAB_4D86_9F3D_DA98730BDFC2 }} + - name: Build the Docker image + run: docker build --tag ${SERVICE_NAME}:api-stag${{steps.event-version.outputs.SOURCE_TAG }} --file ./backend/Dockerfile ./backend/ + - name: GitHub Image Push + run: docker push $SERVICE_NAME:api-stag${{steps.event-version.outputs.SOURCE_TAG }} + - name: Platformer Deploy + uses: platformer-com/build-deploy-action@v1 + with: + org-id: ${{secrets.ORG_ID_E8AEDE36_3213_4D3A_80FD_C3897CFBBF97}} + project-id: ${{secrets.PROJECT_ID_E8AEDE36_3213_4D3A_80FD_C3897CFBBF97}} + token: ${{secrets.AUTOGENERATED_CICD_E8AEDE36_3213_4D3A_80FD_C3897CFBBF97}} + image-name: ${{env.SERVICE_NAME}} + tag: api-stag${{steps.event-version.outputs.SOURCE_TAG }} + container-id: f2075213-1344-497a-be81-b033d299359c From b3e8224120cb1fe56ad68f4157e00304ae544c36 Mon Sep 17 00:00:00 2001 From: Yujith Isura <42527969+YujithIsura@users.noreply.github.com> Date: Thu, 29 Sep 2022 07:00:30 +0530 Subject: [PATCH 3/4] Update platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml --- .../platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml b/.github/workflows/platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml index 1616e93a..58184bc0 100644 --- a/.github/workflows/platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml +++ b/.github/workflows/platformer-c86af892-ffab-4d86-9f3d-da98730bdfc2.yml @@ -1,4 +1,4 @@ -name: Platformer Generated api-stag-ui Build +name: Platformer Generated api-stag Build 'on': push: tags: From 4c00931681e0be9494668e0949385e113cd7385a Mon Sep 17 00:00:00 2001 From: Kosala Gangabadage Date: Tue, 4 Oct 2022 22:47:06 -0400 Subject: [PATCH 4/4] Platformer Workflow updated --- .../platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml b/.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml index 84b45385..75019ed1 100644 --- a/.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml +++ b/.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml @@ -22,7 +22,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.DOCKER_PASSWORD_A216CF89_BD2F_471B_94D0_E37D05D5EDF4 }} - name: Build the Docker image - run: docker build --tag ${SERVICE_NAME}:stag-ui-${{steps.event-version.outputs.SOURCE_TAG }} --file ./frontend/Dockerfile ./frontend/ --build-arg API_BASE_URL=https://api.incident.ecstag.opensource.lk + run: docker build --tag ${SERVICE_NAME}:stag-ui-${{steps.event-version.outputs.SOURCE_TAG }} --file ./frontend/Dockerfile ./frontend/ --build-arg API_BASE_URL=https://api.incidents.ecstag.opensource.lk - name: GitHub Image Push run: docker push $SERVICE_NAME:stag-ui-${{steps.event-version.outputs.SOURCE_TAG }} - name: Platformer Deploy