Skip to content

Commit

Permalink
New containers ci (#259)
Browse files Browse the repository at this point in the history
* remove eos-fuse-mount container. FUSE mount is done differently in the cluster now

* update rucio-client Dockerfile with base-ops base layer (based on rucio-clients, rather than rucio-server)

* add autobuild repository release workflow - WIP !!!!!!

* remove old ci files, update autobuild release file

---------

Co-authored-by: Enrique Garcia <[email protected]>
  • Loading branch information
garciagenrique and Enrique Garcia authored Dec 15, 2023
1 parent 542524e commit 8bb4e9d
Show file tree
Hide file tree
Showing 17 changed files with 143 additions and 457 deletions.
119 changes: 119 additions & 0 deletions .github/workflows/docker-autobuild-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Docker automatic build and publish with repository releases

on:
push:
tags: [ 'v*.*.*' ]

env:
REGISTRY: ghcr.io

jobs:
build-and-push-base-ops:
runs-on: ubuntu-latest
name: Build and push vre-base-ops image
strategy:
matrix:
context: [
'base-ops'
]

permissions:
contents: read
packages: write

steps:
- name: Docker Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Extract metadata for ${{ matrix.environments }}
id: metadata
uses: docker/[email protected]
with:
flavor: |
latest=true
tags: |
type=ref,event=tag
# ghcr.io/vre-hub/{vre}-{base-ops}:{tag}
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}-${{ matrix.environments }}

- name: Build and push ${{ matrix.environments }}
id: build
uses: docker/[email protected]
with:
context: ./${{ matrix.environments }}
file: ./${{ matrix.environments }}/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%SZ')
build-and-push-container:
runs-on: ubuntu-latest
name: Build and push vre operation images
strategy:
matrix:
context: [
'iam-reana-sync',
'iam-rucio-sync',
'rucio-client',
'rucio-noise',
]

permissions:
contents: read
packages: write

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

- name: Get tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Check env output
run: echo "tag" is ${{ env.RELEASE_VERSION }}

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

- name: Extract metadata for ${{ matrix.environments }}
id: metadata
uses: docker/[email protected]
with:
flavor: |
latest=true
tags: |
type=ref,event=tag
# ghcr.io/vre-hub/{vre}-{container_name}:{tag}
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}-${{ matrix.environments }}

- name: Build and push ${{ matrix.environments }}
id: build
uses: docker/[email protected]
with:
context: ./${{ matrix.environments }}
file: ./${{ matrix.environments }}/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%SZ')
TAG=${{ env.RELEASE_VERSION }}
61 changes: 0 additions & 61 deletions .github/workflows/docker-base-ops.yaml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/docker-iam-reana-sync.yaml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/docker-iam-rucio-sync.yaml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/docker-rucio-client.yaml

This file was deleted.

Loading

0 comments on commit 8bb4e9d

Please sign in to comment.