xref: /OpenGrok/.github/workflows/docker.yml (revision 80911bd45d506e4db132b47bb41d103c8bbfad5e)
1e25a391aSVladimir Kotalname: Build docker image
2e25a391aSVladimir Kotal
3e25a391aSVladimir Kotalon: [push, pull_request]
4e25a391aSVladimir Kotal
5e25a391aSVladimir Kotaljobs:
6e25a391aSVladimir Kotal  ubuntu:
7e25a391aSVladimir Kotal    runs-on: ubuntu-latest
8e25a391aSVladimir Kotal    steps:
9e25a391aSVladimir Kotal    - name: Checkout master branch
10e25a391aSVladimir Kotal      uses: actions/checkout@v2
11e25a391aSVladimir Kotal    - name: Build Docker image
129e106a9aSVladimir Kotal      env:
13*96af1aa1SVladimir Kotal        DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
14*96af1aa1SVladimir Kotal        DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
159e106a9aSVladimir Kotal        OPENGROK_REPO_SLUG: ${{ github.repository }}
169e106a9aSVladimir Kotal        OPENGROK_PULL_REQUEST: ${{ github.head_ref }}
179e106a9aSVladimir Kotal        OPENGROK_REF: ${{ github.ref }}
18e25a391aSVladimir Kotal      run: ./dev/docker.sh
19