Skip to content

Commit

Permalink
improve RAD CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskiesel committed Jan 13, 2025
1 parent f6445e9 commit 699038d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/rad25-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: Publish RAD25 base image to GitHub Packages
on:
push:
tags:
- v*
- rad25-base-v*

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: ${{ touche-webis-de/touche25-retrieval-augmented-debating-base }}
SRC_PATH: ${{ ./clef25/retrieval-augmented-debating/debating-systems/base/ }}

jobs:
build-and-publish:
Expand All @@ -21,30 +22,26 @@ jobs:
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/touche-webis-de/touche25-retrieval-augmented-debating-base
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
labels: |
org.opencontainers.image.description=Base image for the Retrieval-Augmented Debating 2025 task
org.opencontainers.image.url=https://github.com/touche-webis-de/touche-code/tree/main/clef25/retrieval-augmented-debating/debating-systems/base
org.opencontainers.image.source=https://github.com/touche-webis-de/touche-code/tree/main/clef25/retrieval-augmented-debating/debating-systems/base
type=match,pattern=v(\d.\d.\d),group=1
type=match,pattern=v(\d.\d),group=1
type=match,pattern=v(\d),group=1
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v6
with:
context: ./clef25/retrieval-augmented-debating/debating-systems/base/
context: ${{ env.SRC_PATH }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ARG BASE_IMAGE=ubuntu:24.04

LABEL org.opencontainers.image.description="Base image for the Retrieval-Augmented Debating 2025 task"
LABEL org.opencontainers.image.url="https://github.com/touche-webis-de/touche-code/tree/main/clef25/retrieval-augmented-debating/debating-systems/base"
LABEL org.opencontainers.image.source="https://github.com/touche-webis-de/touche-code/tree/main/clef25/retrieval-augmented-debating/debating-systems/base"

FROM ${BASE_IMAGE}
ARG NVM_VERSION=0.40.1
ARG NODE_VERSION=23.6.0
Expand Down

0 comments on commit 699038d

Please sign in to comment.