-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
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
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}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
container for EIC | ||
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
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.
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
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.