Skip to content

chore: eslint

chore: eslint #107

name: Release please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
name: Release please
runs-on: ubuntu-latest
outputs:
release: ${{ steps.release.outputs.release_created }}
releases: ${{ steps.release.outputs.releases_created }}
version: ${{ steps.release.outputs.version }}
tag: ${{ steps.release.outputs.tag_name }}
steps:
- name: Release please
uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
docker:
name: Build & Publish ${{ matrix.docker.name }} to Docker Hub
strategy:
matrix:
docker:
- { name: Hiker's Book UI, target: ui-hikers-book, image: radoslavirha/hikers-book-ui-hikers-book }
- { name: Authentication API, target: api-authentication, image: radoslavirha/hikers-book-api-authentication }
- { name: GraphQL API, target: api-graphql, image: radoslavirha/hikers-book-api-graphql }
- { name: Stages API, target: api-stages, image: radoslavirha/hikers-book-api-stages }
- { name: Trips API, target: api-trips, image: radoslavirha/hikers-book-api-trips }
runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.release
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- 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 Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./infra/docker/Dockerfile
# platforms: linux/amd64,linux/arm64
push: true
tags: ${{ matrix.docker.image }}:${{ needs.release-please.outputs.version }},${{ matrix.docker.image }}:latest
target: ${{ matrix.docker.target }}