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 | e905b72d2c8951a2e3612722fde6ceaf449cda91 (patch) | |
tree | 8b2ef0444ab41638643364449085c17c0f0c685b | |
parent | d8109e45a966d0823ba1ae0e51f0da0154ba156f (diff) | |
download | timeline-e905b72d2c8951a2e3612722fde6ceaf449cda91.tar.gz timeline-e905b72d2c8951a2e3612722fde6ceaf449cda91.tar.bz2 timeline-e905b72d2c8951a2e3612722fde6ceaf449cda91.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
|