moves to slacgismo hub account #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish image to Docker Hub | |
on: | |
push: | |
branches: | |
- deploy-docker | |
# workflow_run: | |
# workflows: [ "Deploy Main"] | |
# types: | |
# - completed | |
jobs: | |
publish-image: | |
#if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Push Docker Image | |
run: | | |
docker build -t ${{ secrets.DOCKER_USERNAME }}/sdt-v1:latest -f ./docker/Dockerfile . | |
docker push ${{ secrets.DOCKER_USERNAME }}/sdt-v1:latest |