diff options
author | crupest <crupest@outlook.com> | 2020-06-02 16:04:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-02 16:04:33 +0800 |
commit | dd8e25f0f9afce0f59a612ad66d3bc44ef64c9c6 (patch) | |
tree | 2a9151b0916b6eb50cba46e1a391826f6aedbb9f | |
parent | 06a824d96baf3aa215153a25bdbd8224abfe1c6e (diff) | |
download | timeline-dd8e25f0f9afce0f59a612ad66d3bc44ef64c9c6.tar.gz timeline-dd8e25f0f9afce0f59a612ad66d3bc44ef64c9c6.tar.bz2 timeline-dd8e25f0f9afce0f59a612ad66d3bc44ef64c9c6.zip |
Add Github Actions for CD .
-rw-r--r-- | .github/workflows/cd.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml new file mode 100644 index 00000000..f7d62936 --- /dev/null +++ b/.github/workflows/cd.yaml @@ -0,0 +1,23 @@ +name: Build And Upload Docker Image
+
+on:
+ push:
+ branches: [master]
+ paths-ignore:
+ - "**/README.md"
+
+jobs:
+ deploy:
+ name: Build And Push Docker
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Build And Push to Docker Hub
+ uses: docker/build-push-action@v1
+ with:
+ username: ${{ secrets.DOCKER_HUB_USERNAME }}
+ password: ${{ secrets.DOCKER_HUB_PASSWORD }}
+ repository: crupest/timeline
+ tags: latest
|