This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and deploy image using Semaphore (#3)
Use Semaphore to build the image and push to Docker Hub. Replaces Docker Hub's Autobuild, which is becoming unavailable on the free account tier. Also add a label to the image that Snyk can use to monitor the repo.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# CI pipeline for building the countingup/kinesalite Docker image and pushing to Docker Hub | ||
# | ||
name: Build and deploy image | ||
version: v1.0 | ||
|
||
agent: | ||
machine: | ||
type: e1-standard-2 | ||
os_image: ubuntu1804 | ||
|
||
blocks: | ||
- name: Build and deploy image | ||
task: | ||
secrets: | ||
- name: countingup-dockerhub | ||
jobs: | ||
- name: Build and deploy image | ||
commands: | ||
- checkout | ||
- docker build -t countingup/kinesalite . | ||
- echo "${DOCKERHUB_PASSWORD}" | docker login --username "${DOCKERHUB_USERNAME}" --password-stdin | ||
- docker push countingup/kinesalite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters