Skip to content

Merge pull request #21 from Ratio1/custom-params #98

Merge pull request #21 from Ratio1/custom-params

Merge pull request #21 from Ratio1/custom-params #98

Workflow file for this run

name: Build and Push Devnet Image
on:
push:
branches: [develop]
# also allow manual runs
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source
uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Docker Hub login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set outputs for version
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build & Push Devnet Image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile_devnet
push: true
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
VERSION=${{ steps.vars.outputs.sha_short }}
tags: |
ratio1/deeploy_ui:devnet