mirror of
https://github.com/farcasclaudiu/LearnCollectInst.git
synced 2026-06-22 05:01:09 +03:00
Update docker-image.yml
This commit is contained in:
@@ -13,6 +13,16 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file ./LearnCollectInst.Api/Dockerfile --tag learncollectinst.api:$(date +%s)
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_GITHUB_TOKEN }}
|
||||
-
|
||||
name: Build the Docker image
|
||||
uses: actions/checkout@v3
|
||||
run: docker build . --file ./LearnCollectInst.Api/Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/learncollectinst.api:$(date +%s)
|
||||
-
|
||||
name: Docker Hub push
|
||||
run: docker push ${{ secrets.DOCKER_USERNAME }}/learncollectinst.api
|
||||
|
||||
Reference in New Issue
Block a user