refactor versioning ci/cd

This commit is contained in:
zurdi zurdo
2023-04-04 17:03:10 +02:00
parent 02d92ce145
commit 4827f63b39
3 changed files with 17 additions and 17 deletions

View File

@@ -1,12 +1,6 @@
name: build romm image
on:
workflow_dispatch:
inputs:
version:
description: 'romm version'
required: true
type: string
on: [workflow_dispatch]
jobs:
build:
@@ -14,17 +8,19 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set environment variables
run: echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: Login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build the image
shell: bash
run: ./.github/actions/build.sh
env:
VERSION: ${{ inputs.version }}