File size: 770 Bytes
0ba8ff6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f9ad82
2908650
 
0ba8ff6
 
 
2908650
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
27
28
29
30
31
32
33
name: Push to Docker Hub

on:
  push:
    tags:
      - '*.*.*'

jobs:
  build-and-push-docker:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
        token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}

    - name: Log in to Docker Hub
      uses: docker/login-action@v1
      with:
        username: joshuasundance
        password: ${{ secrets.DOCKERHUB_TOKEN }}

    - name: Build Docker image
      run: |
        docker build \
          --target runtime \
          -t joshuasundance/geospatial-data-converter:${{ github.ref_name }} \
          -t joshuasundance/geospatial-data-converter:latest \
          .

    - name: Push to Docker Hub
      run: docker push -a joshuasundance/geospatial-data-converter