-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- we drop the `Dockerfile.dev`
- Loading branch information
Showing
5 changed files
with
89 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,15 @@ env: | |
FORCE_COLOR: 1 | ||
PIP_PROGRESS_BAR: off | ||
PYTHONUNBUFFERED: 1 | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
strategy: | ||
matrix: | ||
python-version: [ '3.10', '3.11', '3.12' ] | ||
|
@@ -48,13 +53,49 @@ jobs: | |
- run: echo "RUNNER_UID=$(id -u)" >> $GITHUB_ENV | ||
- run: echo "RUNNER_GID=$(id -g)" >> $GITHUB_ENV | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Configure metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
# Configure to use `latest` and the PEP440 version from a tag name for | ||
# releases, and `develop` for non-release main builds. | ||
tags: | | ||
type=pep440,pattern=${{ env.KARAPACE_VERSION }} | ||
type=raw,value=${{ env.KARAPACE_VERSION }} | ||
labels: | | ||
[email protected] | ||
org.opencontainers.image.url=https://karapace.io | ||
org.opencontainers.image.documentation=https://github.com/Aiven-Open/karapace/ | ||
org.opencontainers.image.vendor=Aiven | ||
org.opencontainers.image.licenses=Apache-2.0 | ||
- name: Cache docker layers | ||
uses: docker/build-push-action@v4 | ||
env: | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
KARAPACE_VERSION: ${{ env.KARAPACE_VERSION }} | ||
REF: aiven-open/karapace:${{ env.KARAPACE_VERSION }} | ||
with: | ||
context: . | ||
cache-to: type=inline | ||
push: false | ||
build-args: KARAPACE_VERSION=${{ env.KARAPACE_VERSION }} | ||
cache-from: type=registry,ref=${{ env.REF }} | ||
cache-to: type=registry,ref=${{ env.REF }},mode=max | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
push: true | ||
build-args: | | ||
KARAPACE_VERSION=${{ env.KARAPACE_VERSION }} | ||
PYTHON_VERSION=${{ matrix.python-version }} | ||
file: container/Dockerfile | ||
platforms: linux/amd64 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters