Skip to content

Instantly share code, notes, and snippets.

@marcosnils
Last active August 12, 2019 06:00
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/a6c6cfe7384317b467facbf5efdc9cd5 to your computer and use it in GitHub Desktop.
Save marcosnils/a6c6cfe7384317b467facbf5efdc9cd5 to your computer and use it in GitHub Desktop.
Markdium-Take 2, Actions!
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