Skip to content

Build API

Build API #18

Workflow file for this run

name: API
run-name: ${{ github.ref_type == 'tag' && 'Publish' || 'Build' }} ${{ github.ref_type == 'tag' && github.ref_name || 'API' }}
on:
push:
branches: '*'
tags:
- v*
- api-*
paths:
- .github/workflows/*
- api/**
permissions:
contents: read
packages: write
jobs:
tests:
uses: ./.github/workflows/tests.yml
with:
directory: api
publish:
if: ${{ github.ref_type == 'tag' }}
needs: tests
uses: ./.github/workflows/publish.yml
with:
directory: api
dockerfile: api/Dockerfile
imageName: ghcr.io/aldahick/rex-api