Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions .github/workflows/release_docker_next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: release-docker-next

on:
workflow_dispatch:
inputs:
tag:
description: 'The tag of the published docker image. Format: v[Major].[Minor].[Patch] (do not forget the v).'
required: true
type: string


concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand All @@ -21,7 +27,6 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -30,27 +35,17 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

- name: Extract metadata (tags, labels) for Docker Hub
id: meta_dockerhub
uses: docker/metadata-action@v5
with:
images: "openml/frontend-next"
tags: |
type=semver,pattern={{raw}}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
context: app-next
file: app-next/Dockerfile
tags: ${{ steps.meta_dockerhub.outputs.tags }}
labels: ${{ steps.meta_dockerhub.outputs.labels }}
tags: ${{ inputs.tags }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'push' }}
push: true

- name: Update repo description
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down