|
1 |
| -name: open pr |
2 |
| -on: |
3 |
| - pull_request: |
4 |
| - types: [opened, reopened] |
5 |
| -jobs: |
6 |
| - build: |
7 |
| - name: Build |
8 |
| - runs-on: ubuntu-latest |
9 |
| - steps: |
10 |
| - - uses: actions/setup-node@v3 |
11 |
| - with: |
12 |
| - node-version: 16 |
13 |
| - - name: Check out code |
14 |
| - uses: actions/checkout@v3 |
15 |
| - - name: Install Grunt |
16 |
| - run: npm install -g grunt-cli |
17 |
| - - name: Get .screeps.json file from secret |
18 |
| - env: |
19 |
| - DOT_SCREEPS_JSON: ${{ secrets.DOT_SCREEPS_JSON }} |
20 |
| - run: echo $DOT_SCREEPS_JSON > .screeps.json |
21 |
| - - name: Install dependencies |
22 |
| - run: npm install |
23 |
| - - name: Test |
24 |
| - run: grunt test |
25 |
| - - name: Build |
26 |
| - run: grunt build |
27 |
| - - name: Login to Docker repo |
28 |
| - uses: docker/login-action@v2 |
29 |
| - with: |
30 |
| - registry: docker.pedanticorderliness.com |
31 |
| - username: ${{ secrets.DOCKER_REG_USER }} |
32 |
| - password: ${{ secrets.DOCKER_REG_PASS }} |
33 |
| - - name: Build and push Docker images |
34 |
| - uses: docker/build-push-action@v3 |
35 |
| - with: |
36 |
| - file: ./k8s/Dockerfile |
37 |
| - context: . |
38 |
| - push: true |
39 |
| - tags: | |
40 |
| - docker.pedanticorderliness.com/screeps-private-server:${{ github.sha }} |
41 |
| - docker.pedanticorderliness.com/screeps-private-server:${{ github.head_ref }} |
42 |
| - - name: Create Screeps Server Resource |
43 |
| - run: | |
44 |
| - curl --fail -X POST -H "X-Access-Token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}" "https://actions.pedanticorderliness.com/resource/screeps/server?branch=${{ github.head_ref }}&tag=${{ github.sha }}" |
| 1 | +# name: open pr |
| 2 | +# on: |
| 3 | +# pull_request: |
| 4 | +# types: [opened, reopened] |
| 5 | +# jobs: |
| 6 | +# build: |
| 7 | +# name: Build |
| 8 | +# runs-on: ubuntu-latest |
| 9 | +# steps: |
| 10 | +# - uses: actions/setup-node@v3 |
| 11 | +# with: |
| 12 | +# node-version: 16 |
| 13 | +# - name: Check out code |
| 14 | +# uses: actions/checkout@v3 |
| 15 | +# - name: Install Grunt |
| 16 | +# run: npm install -g grunt-cli |
| 17 | +# - name: Get .screeps.json file from secret |
| 18 | +# env: |
| 19 | +# DOT_SCREEPS_JSON: ${{ secrets.DOT_SCREEPS_JSON }} |
| 20 | +# run: echo $DOT_SCREEPS_JSON > .screeps.json |
| 21 | +# - name: Install dependencies |
| 22 | +# run: npm install |
| 23 | +# - name: Test |
| 24 | +# run: grunt test |
| 25 | +# - name: Build |
| 26 | +# run: grunt build |
| 27 | +# - name: Login to Docker repo |
| 28 | +# uses: docker/login-action@v2 |
| 29 | +# with: |
| 30 | +# registry: docker.pedanticorderliness.com |
| 31 | +# username: ${{ secrets.DOCKER_REG_USER }} |
| 32 | +# password: ${{ secrets.DOCKER_REG_PASS }} |
| 33 | +# - name: Build and push Docker images |
| 34 | +# uses: docker/build-push-action@v3 |
| 35 | +# with: |
| 36 | +# file: ./k8s/Dockerfile |
| 37 | +# context: . |
| 38 | +# push: true |
| 39 | +# tags: | |
| 40 | +# docker.pedanticorderliness.com/screeps-private-server:${{ github.sha }} |
| 41 | +# docker.pedanticorderliness.com/screeps-private-server:${{ github.head_ref }} |
| 42 | +# - name: Create Screeps Server Resource |
| 43 | +# run: | |
| 44 | +# curl --fail -X POST -H "X-Access-Token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}" "https://actions.pedanticorderliness.com/resource/screeps/server?branch=${{ github.head_ref }}&tag=${{ github.sha }}" |
0 commit comments