Push built image (from main) to dockerhub

This commit is contained in:
Alexander Hofbauer 2021-05-16 17:08:47 +02:00
parent 4b9489d050
commit bbabfe72ab
No known key found for this signature in database
GPG key ID: 6421CE3D34E74BA1
2 changed files with 8 additions and 3 deletions

View file

@ -2,9 +2,7 @@ name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [ main ]
jobs:
@ -23,3 +21,8 @@ jobs:
run: |
echo Building version ${{ steps.version.outputs.release_version }}...
docker build . --file Dockerfile --tag alehoho/oo-ce-docker-license:${{ steps.version.outputs.release_version }}
- name: Push Docker image
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
docker push alehoho/oo-ce-docker-license:${{ steps.version.outputs.release_version }}