mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
[skip ci] github workflow changed to manual
This commit is contained in:
24
.github/workflows/image.yml
vendored
24
.github/workflows/image.yml
vendored
@@ -1,8 +1,20 @@
|
||||
name: build romm image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
env:
|
||||
description: 'environment'
|
||||
required: true
|
||||
default: 'dev'
|
||||
type: choice
|
||||
options:
|
||||
- dev
|
||||
- pro
|
||||
version:
|
||||
description: 'romm version'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -18,8 +30,12 @@ jobs:
|
||||
- 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: |
|
||||
VERSION=dev-0.13
|
||||
if [[ $ENV -eq 'dev' ]]; then VERSION=$ENV-$VERSION; fi
|
||||
docker buildx build --push\
|
||||
--tag zurdi15/romm:latest --tag zurdi15/romm:${VERSION}\
|
||||
--platform linux/arm64,linux/amd64 . --file ./docker/Dockerfile
|
||||
--platform linux/arm64,linux/amd64 . --file ./docker/Dockerfile
|
||||
env:
|
||||
ENV: ${{ inputs.env }}
|
||||
VERSION: ${{ inputs.version }}
|
||||
Reference in New Issue
Block a user