mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 21:35:16 +02:00
Add semaphore workflow for npmjs deployment (#48)
This commit is contained in:
21
.semaphore/deploy_dockerhub.yml
Normal file
21
.semaphore/deploy_dockerhub.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
version: v1.0
|
||||
name: Deploy to DockerHub
|
||||
blocks:
|
||||
- name: Deploy to DockerHub
|
||||
task:
|
||||
jobs:
|
||||
- name: Deploy
|
||||
commands:
|
||||
- checkout
|
||||
- 'docker build . -t "devicefarmer/stf:${SEMAPHORE_GIT_TAG_NAME:-latest}"'
|
||||
- docker push devicefarmer/stf
|
||||
secrets:
|
||||
- name: dockerhub-secrets
|
||||
prologue:
|
||||
commands:
|
||||
- 'echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin'
|
||||
dependencies: []
|
||||
agent:
|
||||
machine:
|
||||
type: e1-standard-2
|
||||
os_image: ubuntu1804
|
||||
Reference in New Issue
Block a user