Skip to content

GitHub Version Tag to set Version within Rosalution and Changelog (#133) #108

GitHub Version Tag to set Version within Rosalution and Changelog (#133)

GitHub Version Tag to set Version within Rosalution and Changelog (#133) #108

name: Compile & Publish
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}
- name: Log in to the Container Registry
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run build script
run: ./build.sh --tag ${{ vars.VERSION_BUILD_TAG }} --push