Bump version and update changelog for release v4.5.1 (#1505) #2
Workflow file for this run
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
name: release | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
docker-build-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
# docker convention: latest tag refers to the last stable release | |
- name: Build and push Docker image to sceptreorg/sceptre:latest | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: sceptreorg/sceptre:latest | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: Build and push Docker image to sceptreorg/sceptre:${{ steps.meta.outputs.tags }} | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: sceptreorg/sceptre:${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
pypi-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Publish to pypi | |
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} |