Skip to content

Release v2.2.0

Release v2.2.0 #237

Workflow file for this run

name: Build container and push to DockerHub
on:
push:
tags:
- 'v*'
jobs:
build:
if: github.repository == 'chiefonboarding/ChiefOnboarding'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: chiefonboarding/chiefonboarding
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: docker/build-push-action@v5
with:
context: .
file: ./back/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}