Skip to content

Commit

Permalink
Create custom action for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
FranchiniFelice720034 authored Dec 16, 2023
1 parent 10a29de commit 386c644
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/main_ITdisambiguation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ jobs:
env:
GDRIVE_CREDENTIALS_DATA: ${{ secrets.GDRIVE_CREDENTIALS_DATA }}
run: dvc pull models/model.pt

- name: Build and push container image to registry
uses: docker/build-push-action@v3
with:
push: true
tags: index.docker.io/${{ secrets.AzureAppService_ContainerUsername_56a097857ddb45fe8e6b314790a2e992 }}/itdisambiguation:${{ github.sha }}
file: ./src/Dockerfile

- name: Build the Docker image # push The image to the docker hub
run: docker build . --file ./src/Dockerfile --tag index.docker.io/${{ secrets.AzureAppService_ContainerUsername_56a097857ddb45fe8e6b314790a2e992 }}/itdisambiguation:${{ github.sha }}

- name: Docker Push
run: docker push index.docker.io/${{ secrets.AzureAppService_ContainerUsername_56a097857ddb45fe8e6b314790a2e992 }}/itdisambiguation:${{ github.sha }}

deploy:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit 386c644

Please sign in to comment.