-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #338 from YujithIsura/newNomination
missing file added for platformer
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
.github/workflows/platformer-04d64a45-af67-40bd-88cb-66ad84e486b7.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 stag-api-tag-push Build | ||
'on': | ||
push: | ||
tags: | ||
- stag* | ||
jobs: | ||
build: | ||
runs-on: | ||
- ubuntu-latest | ||
env: | ||
SERVICE_NAME: ghcr.io/eclk/nomination | ||
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_04D64A45_AF67_40BD_88CB_66AD84E486B7 }} | ||
- name: Build the Docker image | ||
run: docker build --tag ${SERVICE_NAME}:${{steps.event-version.outputs.SOURCE_TAG }} --file ./server/Dockerfile ./server | ||
- 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_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}} | ||
project-id: ${{secrets.PROJECT_ID_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}} | ||
token: ${{secrets.AUTOGENERATED_CICD_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}} | ||
image-name: ${{env.SERVICE_NAME}} | ||
tag: ${{steps.event-version.outputs.SOURCE_TAG }} | ||
container-id: fc6f2843-4674-43c9-bad1-d6529b81cd66 |
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