From c59efdfa6f7629a9010627a767d1d4d6a0b3a182 Mon Sep 17 00:00:00 2001 From: Kosala Gangabadage Date: Thu, 15 Sep 2022 00:48:57 -0400 Subject: [PATCH] Create platformer-d8dcab6f-62b6-49c7-8d17-e2c0c90c6954.yml --- ...r-d8dcab6f-62b6-49c7-8d17-e2c0c90c6954.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/platformer-d8dcab6f-62b6-49c7-8d17-e2c0c90c6954.yml diff --git a/.github/workflows/platformer-d8dcab6f-62b6-49c7-8d17-e2c0c90c6954.yml b/.github/workflows/platformer-d8dcab6f-62b6-49c7-8d17-e2c0c90c6954.yml new file mode 100644 index 0000000..1b61001 --- /dev/null +++ b/.github/workflows/platformer-d8dcab6f-62b6-49c7-8d17-e2c0c90c6954.yml @@ -0,0 +1,36 @@ +name: Platformer Generated dev-ui-push Build +'on': + push: + branches: + - master +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/heads/}-${{github.sha}} + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ${{ env.CONTAINER_REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.DOCKER_PASSWORD_D8DCAB6F_62B6_49C7_8D17_E2C0C90C6954 }} + - name: Build the Docker image + run: docker build --tag ${SERVICE_NAME}:dev-ui-${{steps.event-version.outputs.SOURCE_TAG }} --file ./frontend/Dockerfile ./frontend/ --build-arg API_BASE_URL=http://api.incident.ecdev.opensource.lk + - name: GitHub Image Push + run: docker push $SERVICE_NAME:dev-ui-${{steps.event-version.outputs.SOURCE_TAG }} + - name: Platformer Deploy + uses: platformer-com/build-deploy-action@v1 + with: + org-id: ${{secrets.ORG_ID_49EDA5B8_F163_43D9_B00E_6A801E4364AF}} + project-id: ${{secrets.PROJECT_ID_49EDA5B8_F163_43D9_B00E_6A801E4364AF}} + token: ${{secrets.AUTOGENERATED_CICD_49EDA5B8_F163_43D9_B00E_6A801E4364AF}} + image-name: ${{env.SERVICE_NAME}} + tag: dev-ui-${{steps.event-version.outputs.SOURCE_TAG }} + container-id: 41c3d558-96f8-4a1a-983f-263c13b0325e