Skip to content

ci: 👷 add ci/cd system #1

ci: 👷 add ci/cd system

ci: 👷 add ci/cd system #1

Workflow file for this run

name: CI
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "**"
workflow_dispatch:
env:
REGISTRY: "ghcr.io"
NAMESPACE: "${{ github.repository }}"
MULTI_ARCH: false
USE_QEMU: false
PLATFORMS: linux/amd64
jobs:
expose-vars:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
outputs:
REGISTRY: ${{ env.REGISTRY }}
NAMESPACE: ${{ env.NAMESPACE }}
MULTI_ARCH: ${{ env.MULTI_ARCH }}
USE_QEMU: ${{ env.USE_QEMU }}
PLATFORMS: ${{ env.PLATFORMS }}
steps:
- name: Exposing env vars
run: echo "Exposing env vars"
build:
uses: ./.github/workflows/build.yml
needs:
- expose-vars
with:
REGISTRY: ${{ needs.expose-vars.outputs.REGISTRY }}
NAMESPACE: ${{ needs.expose-vars.outputs.NAMESPACE }}
PLATFORMS: ${{ needs.expose-vars.outputs.PLATFORMS }}
TAG: pr-${{ github.event.pull_request.number || github.event.number }}