mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
289665eb22
Runners sometimes fail because they run out of disk space. One reason this happens is a change in the setup-go action@v4: > The V4 edition of the action offers: Enabled caching by default To combat this, we now disable the cache if it was not enabled explicitly before. Additionally, we remove setup-go where it is no longer needed.
32 lines
887 B
YAML
32 lines
887 B
YAML
name: Build and upload versionsapi CI image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "internal/api/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: 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 }}
|