[#587] Build OCI images for release tags
All checks were successful
/ Vulncheck (pull_request) Successful in 2m51s
/ OCI image (pull_request) Successful in 4m4s
/ Builds (pull_request) Successful in 3m14s
/ DCO (pull_request) Successful in 6m44s
/ Lint (pull_request) Successful in 8m38s
/ Tests (pull_request) Successful in 7m12s
All checks were successful
/ Vulncheck (pull_request) Successful in 2m51s
/ OCI image (pull_request) Successful in 4m4s
/ Builds (pull_request) Successful in 3m14s
/ DCO (pull_request) Successful in 6m44s
/ Lint (pull_request) Successful in 8m38s
/ Tests (pull_request) Successful in 7m12s
OCI images will be built often (on each PR) to make sure our recipe doesn't get rusty. Publishing to the registry will happen only for `v*` tags. Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
e0ce59fd32
commit
3780f7b816
1 changed files with 27 additions and 0 deletions
27
.forgejo/workflows/oci-image.yml
Normal file
27
.forgejo/workflows/oci-image.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
on:
|
||||
pull_request:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
image:
|
||||
name: OCI image
|
||||
runs-on: docker
|
||||
container: git.frostfs.info/truecloudlab/env:oci-image-builder-bookworm
|
||||
steps:
|
||||
- name: Clone git repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build OCI image
|
||||
run: make image
|
||||
|
||||
- name: Push image to OCI registry
|
||||
run: |
|
||||
echo "$REGISTRY_PASSWORD" \
|
||||
| docker login --username truecloudlab --password-stdin git.frostfs.info
|
||||
make image-push
|
||||
if: >-
|
||||
startsWith(github.ref, 'refs/tags/v') &&
|
||||
(github.event_name == 'workflow_dispatch' || github.event_name == 'push')
|
||||
env:
|
||||
REGISTRY_PASSWORD: ${{secrets.FORGEJO_OCI_REGISTRY_PUSH_TOKEN}}
|
Loading…
Reference in a new issue