Skip to content

Commit

Permalink
Platformer GitHub Action Created
Browse files Browse the repository at this point in the history
  • Loading branch information
chamodshehanka committed May 13, 2021
1 parent 59934c5 commit e31351e
Showing 1 changed file with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Platformer Generated platformer-workflow Build
'on':
push:
tags:
- '*'
jobs:
build:
runs-on:
- ubuntu-latest
env:
SERVICE_NAME: ghcr.io/sliit-foss/rsvp
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_634EBED6_CA09_4B11_80AC_2A421955481C }}
- name: Build the Docker image
run: docker build --tag ${SERVICE_NAME}:${{steps.event-version.outputs.SOURCE_TAG }} --file Dockerfile .
- 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_F8DCF125_5ECD_47D5_BCB2_6479B0A6FE5F}}
project-id: ${{secrets.PROJECT_ID_F8DCF125_5ECD_47D5_BCB2_6479B0A6FE5F}}
token: ${{secrets.AUTOGENERATED_CICD_F8DCF125_5ECD_47D5_BCB2_6479B0A6FE5F}}
image-name: ${{env.SERVICE_NAME}}
tag: ${{steps.event-version.outputs.SOURCE_TAG }}
container-id: 1c2cf09f-e449-45e6-a7dc-7a62a4f6faf8

0 comments on commit e31351e

Please sign in to comment.