Skip to content

little update

little update #7

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 01barthez --password-stdin
- name: "Push to Docker Hub"
run: docker push 01barthez/barthez-react-app