Skip to content

Merge pull request #126 from Pyments/fix/medications-adjusts #23

Merge pull request #126 from Pyments/fix/medications-adjusts

Merge pull request #126 from Pyments/fix/medications-adjusts #23

Workflow file for this run

name: Build Back-end API
on:
workflow_dispatch:
inputs:
refToBuild:
description: 'Branch, tag or commit SHA1 to build'
required: true
type: string
push:
branches: [ "main" ]
paths:
- 'apps/medicamentar-api/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{secrets.DOCKERHUB_USER}}
password: ${{secrets.DOCKERHUB_PWD}}
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: apps/medicamentar-api
file: apps/medicamentar-api/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USER }}/medicamentar-api:latest, ${{ secrets.DOCKERHUB_USER }}/medicamentar-api:${{ github.sha }}