mirror of
https://github.com/rommapp/romm.git
synced 2026-06-30 07:45:52 +00:00
30 lines
810 B
YAML
30 lines
810 B
YAML
name: build romm image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'romm version'
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
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 }} |