aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-10 17:20:37 +0800
committercrupest <crupest@outlook.com>2020-06-10 17:20:37 +0800
commitcaf8745d82819c3f5f07e2f927b5c02dc7ccea61 (patch)
tree0b2436b4815f266043b75d127f4eb11c7fe84302 /.github
parent33b130663d03d8fc4a3a8236e40ef2abf7ced7b8 (diff)
downloadtimeline-caf8745d82819c3f5f07e2f927b5c02dc7ccea61.tar.gz
timeline-caf8745d82819c3f5f07e2f927b5c02dc7ccea61.tar.bz2
timeline-caf8745d82819c3f5f07e2f927b5c02dc7ccea61.zip
infra(ci): Add versioned docker image cd.v0.2.0-alpha
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cd-version.yaml24
-rw-r--r--.github/workflows/cd.yaml2
2 files changed, 25 insertions, 1 deletions
diff --git a/.github/workflows/cd-version.yaml b/.github/workflows/cd-version.yaml
new file mode 100644
index 00000000..963649ca
--- /dev/null
+++ b/.github/workflows/cd-version.yaml
@@ -0,0 +1,24 @@
+name: Build And Upload Versioned Docker Image
+
+on:
+ push:
+ tags:
+ - "v[0-9]+.[0-9]+.[0-9]+*"
+ 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
+ tag_with_ref: true
diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml
index f7d62936..0e93a1b4 100644
--- a/.github/workflows/cd.yaml
+++ b/.github/workflows/cd.yaml
@@ -1,4 +1,4 @@
-name: Build And Upload Docker Image
+name: Build And Upload Latest Docker Image
on:
push: