Update docker-image.yml

This commit is contained in:
bolkedebruin 2022-08-08 15:09:46 +02:00 committed by GitHub
parent aeb777624a
commit dd67e4f7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,11 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker login
run: |
echo ${{ secrets.DOCKER_USER }} | docker login -u ${{ secrets.DOCKER_PASSWORD }} --password-stdin
- name: Build the Docker image
run: docker build . --file dev/docker/Dockerfile --tag bolkedebruin/rdpgw:$(date +%s)
- name: Publish
run: docker push bolkedebruin/rdpgw
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image
run: docker build . --file dev/docker/Dockerfile --tag bolkedebruin/rdpgw:$(date +%s)
- name: Publish
run: docker push bolkedebruin/rdpgw