Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
YujithIsura committed Oct 6, 2022
2 parents b1db9e4 + 4c00931 commit 6f5e09c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.incidents.ecstag.opensource.lk
- name: GitHub Image Push
run: docker push $SERVICE_NAME:stag-ui-${{steps.event-version.outputs.SOURCE_TAG }}
- name: Platformer Deploy
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Platformer Generated api-stag 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

0 comments on commit 6f5e09c

Please sign in to comment.