mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2026-01-20 15:20:14 +01:00
Update workflows to also build tagged releases
Signed-off-by: simonmicro <simon@simonmicro.de>
This commit is contained in:
parent
565ef8d500
commit
62508dfc49
24
.github/workflows/bake_to_latest.yml
vendored
24
.github/workflows/bake_to_latest.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Build release-tags
|
||||
name: Build latest/main tags
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
|
@ -39,10 +39,17 @@ jobs:
|
|||
file: ./docker/docker-py3-kms/Dockerfile
|
||||
platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6
|
||||
push: true
|
||||
tags: pykmsorg/py-kms:python3,ghcr.io/py-kms-organization/py-kms:python3
|
||||
# the tag "python3" is for backward compatibility only
|
||||
tags: |
|
||||
pykmsorg/py-kms:main
|
||||
ghcr.io/py-kms-organization/py-kms:main
|
||||
pykmsorg/py-kms:main-full
|
||||
ghcr.io/py-kms-organization/py-kms:main-full
|
||||
pykmsorg/py-kms:python3
|
||||
ghcr.io/py-kms-organization/py-kms:python3
|
||||
build-args: |
|
||||
BUILD_COMMIT=${{ github.sha }}
|
||||
BUILD_BRANCH=${{ github.ref_name }}
|
||||
BUILD_REFERENCE=${{ github.ref_name }}
|
||||
- name: Build (minimal)
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
|
@ -50,7 +57,14 @@ jobs:
|
|||
file: ./docker/docker-py3-kms-minimal/Dockerfile
|
||||
platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6
|
||||
push: true
|
||||
tags: pykmsorg/py-kms:latest,ghcr.io/py-kms-organization/py-kms:latest,pykmsorg/py-kms:minimal,ghcr.io/py-kms-organization/py-kms:minimal
|
||||
# the tag "minimal" is for backward compatibility only
|
||||
tags: |
|
||||
pykmsorg/py-kms:latest
|
||||
ghcr.io/py-kms-organization/py-kms:latest
|
||||
pykmsorg/py-kms:main-minimal
|
||||
ghcr.io/py-kms-organization/py-kms:main-minimal
|
||||
pykmsorg/py-kms:minimal
|
||||
ghcr.io/py-kms-organization/py-kms:minimal
|
||||
build-args: |
|
||||
BUILD_COMMIT=${{ github.sha }}
|
||||
BUILD_BRANCH=${{ github.ref_name }}
|
||||
BUILD_REFERENCE=${{ github.ref_name }}
|
||||
|
|
|
|||
24
.github/workflows/bake_to_next.yml
vendored
24
.github/workflows/bake_to_next.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Build next-tags
|
||||
name: Build next tags
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
|
@ -39,10 +39,17 @@ jobs:
|
|||
file: ./docker/docker-py3-kms/Dockerfile
|
||||
platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6
|
||||
push: true
|
||||
tags: pykmsorg/py-kms:python3-next,ghcr.io/py-kms-organization/py-kms:python3-next
|
||||
# the tag "python3-next" is for backward compatibility only
|
||||
tags: |
|
||||
pykmsorg/py-kms:next
|
||||
ghcr.io/py-kms-organization/py-kms:next
|
||||
pykmsorg/py-kms:next-full
|
||||
ghcr.io/py-kms-organization/py-kms:next-full
|
||||
pykmsorg/py-kms:python3-next
|
||||
ghcr.io/py-kms-organization/py-kms:python3-next
|
||||
build-args: |
|
||||
BUILD_COMMIT=${{ github.sha }}
|
||||
BUILD_BRANCH=${{ github.ref_name }}
|
||||
BUILD_REFERENCE=${{ github.ref_name }}
|
||||
- name: Build (minimal)
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
|
@ -50,7 +57,14 @@ jobs:
|
|||
file: ./docker/docker-py3-kms-minimal/Dockerfile
|
||||
platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6
|
||||
push: true
|
||||
tags: pykmsorg/py-kms:latest-next,ghcr.io/py-kms-organization/py-kms:latest-next,pykmsorg/py-kms:minimal-next,ghcr.io/py-kms-organization/py-kms:minimal-next
|
||||
# the tag "latest-next" and "minimal-next" are for backward compatibility only
|
||||
tags: |
|
||||
pykmsorg/py-kms:next-minimal
|
||||
ghcr.io/py-kms-organization/py-kms:next-minimal
|
||||
pykmsorg/py-kms:latest-next
|
||||
ghcr.io/py-kms-organization/py-kms:latest-next
|
||||
pykmsorg/py-kms:minimal-next
|
||||
ghcr.io/py-kms-organization/py-kms:minimal-next
|
||||
build-args: |
|
||||
BUILD_COMMIT=${{ github.sha }}
|
||||
BUILD_BRANCH=${{ github.ref_name }}
|
||||
BUILD_REFERENCE=${{ github.ref_name }}
|
||||
|
|
|
|||
4
.github/workflows/bake_to_test.yml
vendored
4
.github/workflows/bake_to_test.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
push: false
|
||||
build-args: |
|
||||
BUILD_COMMIT=${{ github.sha }}
|
||||
BUILD_BRANCH=${{ github.ref_name }}
|
||||
BUILD_REFERENCE=${{ github.ref_name }}
|
||||
- name: Build (minimal)
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
|
@ -35,4 +35,4 @@ jobs:
|
|||
push: false
|
||||
build-args: |
|
||||
BUILD_COMMIT=${{ github.sha }}
|
||||
BUILD_BRANCH=${{ github.ref_name }}
|
||||
BUILD_REFERENCE=${{ github.ref_name }}
|
||||
|
|
|
|||
62
.github/workflows/bake_to_version.yml
vendored
Normal file
62
.github/workflows/bake_to_version.yml
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
name: Build version tags
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
bake-latest:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: Docker Setup QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: all
|
||||
- name: Docker Setup Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build (full)
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./docker/docker-py3-kms/Dockerfile
|
||||
platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6
|
||||
push: true
|
||||
tags: |
|
||||
pykmsorg/py-kms:${{ github.ref_name }}-full
|
||||
ghcr.io/py-kms-organization/py-kms:${{ github.ref_name }}-full
|
||||
build-args: |
|
||||
BUILD_COMMIT=${{ github.sha }}
|
||||
BUILD_REFERENCE=${{ github.ref_name }}
|
||||
- name: Build (minimal)
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./docker/docker-py3-kms-minimal/Dockerfile
|
||||
platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6
|
||||
push: true
|
||||
tags: |
|
||||
pykmsorg/py-kms:${{ github.ref_name }}
|
||||
ghcr.io/py-kms-organization/py-kms:${{ github.ref_name }}
|
||||
pykmsorg/py-kms:${{ github.ref_name }}-minimal
|
||||
ghcr.io/py-kms-organization/py-kms:${{ github.ref_name }}-minimal
|
||||
build-args: |
|
||||
BUILD_COMMIT=${{ github.sha }}
|
||||
BUILD_REFERENCE=${{ github.ref_name }}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
FROM alpine:3.22
|
||||
|
||||
ARG BUILD_COMMIT=unknown
|
||||
ARG BUILD_BRANCH=unknown
|
||||
ARG BUILD_REFERENCE=unknown
|
||||
|
||||
ENV IP=::
|
||||
ENV DUALSTACK=1
|
||||
|
|
@ -50,7 +50,7 @@ RUN chown root: -R /home/py-kms && \
|
|||
|
||||
# Web-interface specifics
|
||||
COPY LICENSE /LICENSE
|
||||
RUN echo "$BUILD_COMMIT" > /VERSION && echo "$BUILD_BRANCH" >> /VERSION
|
||||
RUN echo "$BUILD_COMMIT" > /VERSION && echo "$BUILD_REFERENCE" >> /VERSION
|
||||
|
||||
WORKDIR /home/py-kms
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue