-
Notifications
You must be signed in to change notification settings - Fork 123
50 lines (47 loc) · 1.56 KB
/
docker_standalone_dispatched_by_user.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Standalone-Dispatch-By-User
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch/ref for the standalone'
required: true
default: 'develop'
base:
description: 'Base number'
required: true
default: 'base number, e.g. latest or 35'
version:
description: 'Version to be build, take from tag ORA-<version>'
required: true
default: 'version, e.g. 5.1.0'
jobs:
docker:
if: ${{ github.repository == 'OpenRoberta/openroberta-lab' }}
runs-on: ubuntu-22.04
steps:
- name: Checkout the branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- name: Set up QEMU for multi architecture build
uses: docker/setup-qemu-action@master
with:
platforms: linux/amd64
- name: Set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build docker image for standalone
uses: docker/build-push-action@v3
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Resources/dockerStandalone/Dockerfile
build-args: BASEVERSION=${{ github.event.inputs.base }}
platforms: linux/amd64
push: true
tags: openroberta/standalone:latest, openroberta/standalone:${{ github.event.inputs.version }}