aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/cd-version.yaml
blob: 6d19cca586b5cd93ea362d28d3bacabeabafb258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
        with:
          submodules: true

      - 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