-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
.github/workflows/platformer-a216cf89-bd2f-471b-94d0-e37d05d5edf4.yml
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,36 @@ | ||
name: Platformer Generated incident-ui-stag-push 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_A216CF89_BD2F_471B_94D0_E37D05D5EDF4 }} | ||
- name: Build the Docker image | ||
run: docker build --tag ${SERVICE_NAME}:${{steps.event-version.outputs.SOURCE_TAG }} --file ./frontend/staging.Dockerfile ./frontend/ | ||
- name: GitHub Image Push | ||
run: docker push $SERVICE_NAME:${{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: ${{steps.event-version.outputs.SOURCE_TAG }} | ||
container-id: fb52f52f-0d9d-45e1-b2da-c17bc50c6cf7 |