Skip to content

Commit

Permalink
infra(ci): Add versioned docker image cd.
Browse files Browse the repository at this point in the history
  • Loading branch information
crupest committed Jun 10, 2020
1 parent 16251d8 commit 2af9c3f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/cd-version.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build And Upload Docker Image
name: Build And Upload Latest Docker Image

on:
push:
Expand Down

0 comments on commit 2af9c3f

Please sign in to comment.