Skip to content

Merge pull request #100 from oegea/dependabot/npm_and_yarn/backend/do… #6

Merge pull request #100 from oegea/dependabot/npm_and_yarn/backend/do…

Merge pull request #100 from oegea/dependabot/npm_and_yarn/backend/do… #6

name: Build and Push Docker image
on:
push:
branches:
- main
paths:
- 'backend/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: oriolegea/passager-backend:latest