fix typo, improve app environment propagation #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: litter-go CI/CD test and build pipeline | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
tags: | ||
- 'v0.*' | ||
- 'v1.*' | ||
jobs: | ||
# unit: | ||
# runs-on: ${{ secrets.RUNNER_LABELS }} | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Run unit/integration tests. | ||
# env: | ||
# HOSTNAME: ${{ vars.HOSTNAME }} | ||
# run: make unit | ||
build: | ||
runs-on: ${{ secrets.RUNNER_LABELS }} | ||
Check failure on line 23 in .github/workflows/test-and-build.yml GitHub Actions / litter-go CI/CD test and build pipelineInvalid workflow file
|
||
needs: [ unit ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build new swapi image (with staging). | ||
env: | ||
APP_PEPPER: ${{ secrets.APP_PEPPER }} | ||
APP_URLS_TRAEFIK: ${{ secrets.APP_URLS_TRAEFIK }} | ||
DOCKER_CONTAINER_NAME: ${{ secrets.DOCKER_CONTAINER_NAME }} | ||
DOCKER_NETWORK_NAME: ${{ secrets.DOCKER_NETWORK_NAME }} | ||
REGISTRY: ${{ secrets.REGISTRY }} | ||
VAPID_PUB_KEY: ${{ secrets.VAPID_PUB_KEY }} | ||
run: make build | ||
push: | ||
runs-on: ${{ secrets.RUNNER_LABELS }} | ||
needs: [ build ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Push the image to registry. | ||
env: | ||
REGISTRY: ${{ secrets.REGISTRY }} | ||
run: make push_to_registry | ||
generate_docs: | ||
runs-on: ${{ secrets.RUNNER_LABELS }} | ||
needs: [ unit ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: (re)Generate interface API swagger docs. | ||
run: make docs | ||