Skip to content

bump: version 2.1.1 → 2.1.2 #25

bump: version 2.1.1 → 2.1.2

bump: version 2.1.1 → 2.1.2 #25

Workflow file for this run

name: Release packages
on:
push:
tags:
- '*.*.*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v4
with:
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U poetry
poetry --version
poetry install
- name: Configure repo
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull origin master --tags --force
- name: Generate openapi
run: |
poetry run python openapi.py
mkdir -p dist
mv openapi.json dist/openapi.json
- name: Get helm dependency
uses: alexellis/arkade-get@master
with:
helm: latest
- name: Generate helm package
run: |
mkdir -p dist
helm package helm_v3/pymockserver/
mv pymockserver-`git tag | tail -n 1`.tgz dist/helm_v3-pymockserver.tgz
- name: Publish GitHub Release
uses: fnkr/[email protected]
env:
GHR_PATH: dist/
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
kudlatyamroth/pymockserver
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}