Skip to content

Changed steps to push to docker hub #13

Changed steps to push to docker hub

Changed steps to push to docker hub #13

name: Build and Push Docker Image
name: Build and Push Docker Image to Docker Hub

Check failure on line 3 in .github/workflows/build-and-push.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-push.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
on: push
jobs:
push_to_registry:
name: push docker image to hub
runs-on: ubuntu-latest
steps:
- name: check repository
uses: actions/checkout@v4
- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: build and push docker image to registry
uses: docker/build-push-action@v5
with:
context: frontend/
push: true
tags: morauen/oxn-frontend:latest