Skip to content

Merge pull request #1027 from jefer94/development #2

Merge pull request #1027 from jefer94/development

Merge pull request #1027 from jefer94/development #2

Workflow file for this run

name: CI to Docker Hub
on:
push:
branches: [main, development]
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'breatheco-de/apiv2' }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: geeksacademy/breathecode
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}