Update docker-image.yml

This commit is contained in:
Yaroslav Markovski 2023-10-26 19:23:31 +03:00 committed by GitHub
parent 18fee4ee1f
commit e65e85835b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,3 +16,14 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build the Docker image - name: Build the Docker image
run: docker build . --file Dockerfile --tag test:$(date +%s) run: docker build . --file Dockerfile --tag test:$(date +%s)
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: test:$(date +%s)