aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml20
1 files changed, 12 insertions, 8 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 3d54321..9b5fd7c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -34,12 +34,16 @@ jobs:
run: |
make test
- - name: Login to DockerHub
- if: github.event_name != 'pull_request'
- uses: docker/login-action@v1
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_PASSWORD }}
- - name: Make tag
+ - name: Push tag
run: |
- make tag
+ rm -f $HOME/.docker/config.json
+ docker login --username=${{secrets.DOCKERHUB_USERNAME}} --password=${{secrets.DOCKERHUB_PASSWORD}} docker.io
+ docker push silvio/docker-languagetool:latest
+ docker push silvio/docker-languagetool:${{ env.VERSION }}
+
+ - name: Logout Docker
+ if: ${{ always() }}
+ run: |
+ docker logout
+ rm -f $HOME/.docker/config.json
+