-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (36 loc) · 1.42 KB
/
platformer-9927210b-c155-4c61-a496-b853b9897684.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Platformer Generated gig-api-eks Build
'on':
push:
branches:
- master
jobs:
build:
runs-on:
- ubuntu-latest
env:
SERVICE_NAME: ghcr.io/lsflk/gig
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_9927210B_C155_4C61_A496_B853B9897684 }}
- 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_7A2047A3_562F_4094_AC7F_ED0C71104C7E}}
project-id: ${{secrets.PROJECT_ID_7A2047A3_562F_4094_AC7F_ED0C71104C7E}}
token: ${{secrets.AUTOGENERATED_CICD_7A2047A3_562F_4094_AC7F_ED0C71104C7E}}
image-name: ${{env.SERVICE_NAME}}
tag: ${{steps.event-version.outputs.SOURCE_TAG }}
container-id: 18b09fa0-d1c4-4e10-a516-97a103d34733