Skip to content

Merge pull request #405 from UserOfficeProject/release-28-02-2024 #21

Merge pull request #405 from UserOfficeProject/release-28-02-2024

Merge pull request #405 from UserOfficeProject/release-28-02-2024 #21

name: Bump version
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Build and push release image tagged with the same tag as github release
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
build-args: BUILD_VERSION=${{ github.sha }}
push: true
tags: ghcr.io/userofficeproject/user-office-factory:${{ steps.tag_version.outputs.new_tag }}