Skip to content

Merge pull request #2 from sanreinoso/section4/managing-users-using-d… #1

Merge pull request #2 from sanreinoso/section4/managing-users-using-d…

Merge pull request #2 from sanreinoso/section4/managing-users-using-d… #1

name: Docker Hub Build and Push
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker Image
run: docker build -t ${{ vars.DOCKER_REPO }}/$SECTION:$GITHUB_SHA $SECTION
- name: Push Docker Image
run: docker push ${{ vars.DOCKER_REPO }}/$SECTION:$GITHUB_SHA