diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 790e9f4..f4424a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,3 +23,23 @@ jobs: - name: Stop Container run: docker stop container1 + + - name: Log in to Docker Hub + uses: docker/login-action@master + with: + username: ${{secrets.DOCKER_USERNAME}} + password: ${{secrets.DOCKER_PASSWORD}} + + - name: Get Metadata + uses: docker/metadata-action@master + with: + images: jarrettgaither/liatriowebapp + + - name: Build and Push Image + uses: docker/build-push-action@master + with: + context: . + file: ./Dockerfile + push: true + tags: ${{steps.meta.output.tags}} + labels: ${{steps.meta.output.labels}}