Build golem node pre-rel-v0.16.0-rc2 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build golem packages for DockerHub | |
run-name: Build golem node ${{ github.event.inputs.release }} | |
on: | |
workflow_dispatch: | |
inputs: | |
release: | |
description: 'Golem Release tag (v0.15.0, pre-rel-v0.15.0-rc1)' | |
required: true | |
jobs: | |
build: | |
name: "Build image & publish" | |
env: | |
REF: ${{ github.event.inputs.release }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- run: | | |
V=${REF#pre-rel-} | |
V=${V#v} | |
docker build -t "golemfactory/provider:$V" --build-arg "YA_INSTALLER_CORE=$REF" docker/provider | |
docker build -t "golemfactory/requestor:$V" --build-arg "YA_INSTALLER_CORE=$REF" docker/requestor | |
docker push "golemfactory/provider:$V" | |
docker push "golemfactory/requestor:$V" |