Skip to content

Commit 14ea690

Browse files
committed
Merge branch 'results-2020' of https://github.com/ECLK/Results into results-2020
2 parents 1a8b1b1 + 28bc9a0 commit 14ea690

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on:
2+
push:
3+
branches: [ results-2020 ]
4+
pull_request:
5+
branches: [ results-2020 ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: docker login
13+
env:
14+
DOCKER_USER: ${{secrets.DOCKER_USER}}
15+
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
16+
run: |
17+
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
18+
- name: Build the Docker image
19+
env:
20+
DOCKER_USER: ${{secrets.DOCKER_USER}}
21+
REPO_NAME: ${{ github.event.repository.name }}
22+
TAG: ${{github.sha}}
23+
run: docker build . --file Dockerfile --tag ${DOCKER_USER}/${REPO_NAME}:${TAG}
24+
- name: Docker Push
25+
run: docker push ${DOCKER_USER}/${REPO_NAME}:${TAG}
26+
env:
27+
DOCKER_USER: ${{secrets.DOCKER_USER}}
28+
REPO_NAME: ${{ github.event.repository.name }}
29+
TAG: ${{github.sha}}
30+
- name: Platformer Deploy
31+
uses: platformer-com/build-deploy-action@v1
32+
with:
33+
domain: https://beta.api.platformer.com/rudder
34+
org-id: ${{secrets.ORG_ID}}
35+
project-id: ${{secrets.PROJECT_ID}}
36+
token: ${{secrets.TOKEN}}
37+
image-name: ${{secrets.DOCKER_USER}}/${{ github.event.repository.name }}
38+
tag: ${{github.sha}}
39+
container-id: a5d76fc2-7078-43a1-9a30-84d1c1bd83e8

0 commit comments

Comments
 (0)