Fix deploy to dockerhub (#448)

This commit is contained in:
Karol Wrótniak
2022-02-23 20:20:50 +01:00
committed by GitHub
parent f61215a689
commit da399c672a

View File

@@ -7,8 +7,9 @@ blocks:
- name: Deploy
commands:
- checkout
- 'docker build . -t "devicefarmer/stf:$(echo ${SEMAPHORE_GIT_TAG_NAME:-vlatest} |cut -c 2-)"'
- docker push devicefarmer/stf
- export TAG=$(echo ${SEMAPHORE_GIT_TAG_NAME:-vlatest} |cut -c 2-)
- 'docker build -t "$TAG" .'
- docker push devicefarmer/stf:$TAG
secrets:
- name: dockerhub-secrets
prologue: