Skip to content

install dependencies #5

install dependencies

install dependencies #5

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