Skip to content

v0.0.3

v0.0.3 #6

Workflow file for this run

name: Release
on:
release:
types: [published]
concurrency:
group: ${{ github.workflow }}
jobs:
docker-images:
strategy:
matrix:
projects:
- project: frontend
- project: backend
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.${{ matrix.projects.project }}
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/auth-system-${{ matrix.projects.project }}:${{ github.ref_name }}
${{ secrets.DOCKERHUB_USERNAME }}/auth-system-${{ matrix.projects.project }}:latest