mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
a8101c8c64
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: Build and upload versionsapi CI image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "internal/versionsapi/**"
|
|
- ".github/workflows/build-versionsapi-ci-image.yml"
|
|
- ".github/actions/versionsapi/**"
|
|
|
|
jobs:
|
|
build-versionsapi-ci-cli:
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- name: Check out repository
|
|
id: checkout
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
with:
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
|
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
|
with:
|
|
go-version: "1.20.3"
|
|
|
|
- name: Build and upload container image
|
|
uses: ./.github/actions/build_micro_service
|
|
with:
|
|
name: versionsapi-ci-cli
|
|
dockerfile: .github/actions/versionsapi/Dockerfile
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|