Skip to content

add gemfile

add gemfile #84

Workflow file for this run

on:
- push
name: Build 🛢️ container
jobs:
build_job:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: cut v from tag
env:
TAG: ${{ github.ref_name }}
id: split
run: echo "tag=${TAG:1}" >> $GITHUB_OUTPUT
- name: Build container
uses: voxpupuli/gha-build-and-publish-a-container@v2
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
tags: |
ghcr.io/${{ github.repository }}:${{ steps.split.outputs.tag }}
ghcr.io/${{ github.repository }}:latest
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Make release
run: |
bundle install
mkdir -p build
github_changelog_generator --since-tag ${{ steps.previoustag.outputs.tag }} --output build/changelog.md
gh release create ${{ github.ref_name }} --notes-file build/changelog.md --title "Release ${{ github.ref_name }}"
if: startsWith(github.ref, 'refs/tags/')