|
@@ -14,7 +14,15 @@ jobs:
|
|
|
steps:
|
|
|
- name: Checkout sources
|
|
|
uses: actions/checkout@v2
|
|
|
- - uses: docker/setup-buildx-action@v1
|
|
|
+ - name: Docker meta
|
|
|
+ id: docker_meta
|
|
|
+ uses: crazy-max/ghaction-docker-meta@v1
|
|
|
+ with:
|
|
|
+ images: transloadit/companion
|
|
|
+ tag-sha: true
|
|
|
+ tag-match: |
|
|
|
+ \d{1,3}.\d{1,3}.\d{1,3}
|
|
|
+ - uses: docker/setup-buildx-action@v1
|
|
|
- name: Log in to DockerHub
|
|
|
uses: docker/login-action@v1
|
|
|
with:
|
|
@@ -26,9 +34,8 @@ jobs:
|
|
|
push: true
|
|
|
context: packages/@uppy/companion
|
|
|
file: packages/@uppy/companion/Dockerfile
|
|
|
- # TODO add a companion version tag if this is a "Release" commit
|
|
|
- # Punting on that since it didn't work on travis either, so current users must already be relying on commit hashes
|
|
|
- tags: transloadit/companion:latest,transloadit/companion:${{github.sha}}
|
|
|
+ tags: ${{ steps.docker_meta.outputs.tags }}
|
|
|
+ labels: ${{ steps.docker_meta.outputs.labels }}
|
|
|
|
|
|
heroku:
|
|
|
name: Heroku
|