Skip to content

Instantly share code, notes, and snippets.

@marcosnils
Created August 12, 2019 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcosnils/d23dca2e2c5213e66987fc550222fd00 to your computer and use it in GitHub Desktop.
Save marcosnils/d23dca2e2c5213e66987fc550222fd00 to your computer and use it in GitHub Desktop.
Markdium-Take 2, Actions!
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