Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.