File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Platformer Generated stag-api-tag-push Build
2
+ ' on ' :
3
+ push :
4
+ tags :
5
+ - stag*
6
+ jobs :
7
+ build :
8
+ runs-on :
9
+ - ubuntu-latest
10
+ env :
11
+ SERVICE_NAME : ghcr.io/eclk/nomination
12
+ CONTAINER_REGISTRY : ghcr.io
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Set Version
16
+ id : event-version
17
+ run : echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
18
+ - name : Login to GitHub Container Registry
19
+ uses : docker/login-action@v1
20
+ with :
21
+ registry : ${{ env.CONTAINER_REGISTRY }}
22
+ username : ${{ github.actor }}
23
+ password : ${{ secrets.DOCKER_PASSWORD_04D64A45_AF67_40BD_88CB_66AD84E486B7 }}
24
+ - name : Build the Docker image
25
+ run : docker build --tag ${SERVICE_NAME}:${{steps.event-version.outputs.SOURCE_TAG }} --file ./server/Dockerfile ./server
26
+ - name : GitHub Image Push
27
+ run : docker push $SERVICE_NAME:${{steps.event-version.outputs.SOURCE_TAG }}
28
+ - name : Platformer Deploy
29
+ uses : platformer-com/build-deploy-action@v1
30
+ with :
31
+ org-id : ${{secrets.ORG_ID_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}}
32
+ project-id : ${{secrets.PROJECT_ID_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}}
33
+ token : ${{secrets.AUTOGENERATED_CICD_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}}
34
+ image-name : ${{env.SERVICE_NAME}}
35
+ tag : ${{steps.event-version.outputs.SOURCE_TAG }}
36
+ container-id : fc6f2843-4674-43c9-bad1-d6529b81cd66
You can’t perform that action at this time.
0 commit comments