Created
August 12, 2019 05:37
-
-
Save marcosnils/d23dca2e2c5213e66987fc550222fd00 to your computer and use it in GitHub Desktop.
Markdium-Take 2, Actions!
This file contains hidden or 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
1 api-upload: | |
2 name: api-upload | |
3 runs-on: ubuntu-latest | |
4 steps: | |
5 - uses: actions/checkout@master | |
6 - name: build api-upload | |
7 run: docker build --build-arg "IMAGE_RELEASE_VERSION=$(echo | |
8 ${{ github.ref }} | cut -f3 -d'/')" -t api-upload ./services/api-upload | |
9 - name: tag | |
11 if: contains(github.ref, 'tags') | |
12 env: | |
13 REF: ${{ github. ref }} | |
14 run: docker tag api-upload zeit/api-upload:${REF##*/} | |
15 - name: deploy | |
16 uses: docker://zeit/deploy | |
17 if: contains(github.ref, 'tags') | |
18 | |
19 api-domains: | |
20 name: api-domains | |
21 runs-on: ubuntu-latest | |
22 steps: | |
23 - uses: actions/checkout@master | |
24 - name: build api-domains | |
25 run: docker build --build-arg "IMAGE_RELEASE_VERSION=$(echo | |
26 ${{ github.ref }} | cut -f3 -d'/')" -t api-domains ./services/api-domains | |
27 - name: tag | |
28 if: contains(github.ref, 'tags') | |
29 env: | |
30 REF: ${{ github. ref }} | |
31 run: docker tag api-domains zeit/api-domains:${REF##*/} | |
32 - name: deploy | |
33 uses: docker://zeit/deploy | |
34 if: contains(github.ref, 'tags') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment