Skip to content

update the docker tag name... #2

update the docker tag name...

update the docker tag name... #2

name: Push Docker image
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . -t barthez-react-app
- name: Connect to docker registry
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME}} --password-stdin
- name: "Push to Docker Hub"
run: docker push ${{ secrets.DOCKER_USERNAME }}/barthez-react-app