Skip to content

update the build syntaxe... #3

update the build syntaxe...

update the build syntaxe... #3

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