Skip to content

Commit

Permalink
port info here with eic policy
Browse files Browse the repository at this point in the history
  • Loading branch information
panta-123 committed Sep 25, 2024
1 parent ffa140d commit 7bc3f9f
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/rucio-release-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Rucio Release Image CI

on:
push:
tags:
- "release-*.eic*"

jobs:
buildx:
runs-on: ubuntu-latest
name: Build and Push GlueX Rucio Release Images
strategy:
matrix:
image: [rucio-daemons, rucio-server]
fail-fast: False

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get git tag name
id: gittag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_ENV"

- name: Get rucio version
id: rucioversion
run: echo "rucio_version=$( echo ${{ env.tag }} | grep -Eo '[0-9]*\.?[0-9]+\.[0-9]+')" >> "$GITHUB_ENV"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Push the Docker Image
uses: docker/build-push-action@v6
with:
context: ./docker/${{ matrix.image }}
file: ./docker/${{ matrix.image }}/Dockerfile
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ matrix.image }}:${{ env.tag }}
push: true
build-args: |
RUCIO_VERSION=${{ env.rucio_version}}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
container for EIC
4 changes: 4 additions & 0 deletions docker/rucio-daemons/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ARG RUCIO_VERSION
FROM rucio/rucio-daemons:release-$RUCIO_VERSION

RUN python3 -m pip install --no-cache-dir -i https://test.pypi.org/simple/ eic-rucio-policy-package
Empty file added docker/rucio-daemons/README.md
Empty file.
5 changes: 5 additions & 0 deletions docker/rucio-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG RUCIO_VERSION

FROM rucio/rucio-server:release-$RUCIO_VERSION

RUN python3 -m pip install --no-cache-dir -i https://test.pypi.org/simple/ eic-rucio-policy-package
Empty file added docker/rucio-server/README.md
Empty file.

0 comments on commit 7bc3f9f

Please sign in to comment.