mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-22 03:07:01 +00:00
Small CI for openapi2jsonschema, publish docker image
This commit is contained in:
parent
129ffaeef1
commit
3aba162880
2 changed files with 8 additions and 11 deletions
15
.github/workflows/openapi2jsonschema.yml
vendored
15
.github/workflows/openapi2jsonschema.yml
vendored
|
|
@ -16,6 +16,9 @@ jobs:
|
||||||
working-directory: ./scripts
|
working-directory: ./scripts
|
||||||
run: make docker-test docker-acceptance
|
run: make docker-test docker-acceptance
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
||||||
|
|
@ -24,15 +27,9 @@ jobs:
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
|
||||||
with:
|
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||||
with:
|
with:
|
||||||
context: ./scripts
|
context: "{{defaultContext}}:scripts"
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
push: true
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
tags: "openapi2jsonschema:latest"
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ LABEL org.opencontainers.image.authors="Various contributors" \
|
||||||
org.opencontainers.image.source="https://github.com/yannh/kubeconform/tree/master/scripts" \
|
org.opencontainers.image.source="https://github.com/yannh/kubeconform/tree/master/scripts" \
|
||||||
org.opencontainers.image.description="Convert OpenAPI CRD to JSON Schema" \
|
org.opencontainers.image.description="Convert OpenAPI CRD to JSON Schema" \
|
||||||
org.opencontainers.image.licenses="Apache License 2.0" \
|
org.opencontainers.image.licenses="Apache License 2.0" \
|
||||||
org.opencontainers.image.title="kubeconform" \
|
org.opencontainers.image.title="openapi2jsonschema" \
|
||||||
org.opencontainers.image.url="https://github.com/yannh/kubeconform/"
|
org.opencontainers.image.url="https://github.com/yannh/kubeconform/tree/master/scripts/"
|
||||||
MAINTAINER Yann HAMON <yann@mandragor.org>
|
MAINTAINER Yann HAMON <yann@mandragor.org>
|
||||||
ENV FILENAME_FORMAT='{kind}-{group}-{version}'
|
ENV FILENAME_FORMAT='{kind}-{group}-{version}'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue