Last active
August 12, 2019 06:00
-
-
Save marcosnils/a6c6cfe7384317b467facbf5efdc9cd5 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
api-upload: | |
name: api-upload | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: build api-upload | |
run: docker build --build-arg "IMAGE_RELEASE_VERSION=$(echo | |
${{ github.ref }} | cut -f3 -d'/')" -t api-upload ./services/api-upload | |
- name: tag | |
if: contains(github.ref, 'tags') | |
env: | |
REF: ${{ github. ref }} | |
run: docker tag api-upload zeit/api-upload:${REF##*/} | |
- name: deploy | |
uses: docker://zeit/deploy | |
if: contains(github.ref, 'tags') | |
api-domains: | |
name: api-domains | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: build api-domains | |
run: docker build --build-arg "IMAGE_RELEASE_VERSION=$(echo | |
${{ github.ref }} | cut -f3 -d'/')" -t api-domains ./services/api-domains | |
- name: tag | |
if: contains(github.ref, 'tags') | |
env: | |
REF: ${{ github. ref }} | |
run: docker tag api-domains zeit/api-domains:${REF##*/} | |
- name: deploy | |
uses: docker://zeit/deploy | |
if: contains(github.ref, 'tags') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment