Skip to content

Commit

Permalink
remove old ci files, update autobuild release file
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrique Garcia committed Dec 15, 2023
1 parent a56e9fd commit a2fea3a
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 337 deletions.
54 changes: 28 additions & 26 deletions .github/workflows/docker-autobuild-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker automatic build and publish on repository release
name: Docker automatic build and publish with repository releases

on:
push:
Expand All @@ -23,33 +23,32 @@ jobs:

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

# TODO: probably do here the git checkout and the set of the version as a global VAR

uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Extract metadata for ${{ matrix.environments }}
id: meta
uses: docker/metadata-action@v4.3.0
id: metadata
uses: docker/metadata-action@v5.3.0
with:
flavor: |
latest=true
tags: |
type=sha
# TODO: custome image tag so that it can be done a: tag_describe=$(git describe --tags | sed 's/-g/-/g')
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.environments }}
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/build-push-action@v4.0.0
uses: docker/build-push-action@v5.1.0
with:
context: ./${{ matrix.environments }}
file: ./${{ matrix.environments }}/Dockerfile
Expand All @@ -58,11 +57,9 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%SZ')
#TODO implement to thing below !
TAG=$(git describe --tags | sed 's/-g/-/g')
build-and-push-container:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
name: Build and push vre operation images
strategy:
matrix:
Expand All @@ -72,37 +69,43 @@ jobs:
'rucio-client',
'rucio-noise',
]

permissions:
contents: read
packages: write

steps:
- name: Docker Checkout
uses: actions/checkout@v3
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@v2.1.0
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for ${{ matrix.environments }}
id: meta
uses: docker/metadata-action@v4.3.0
id: metadata
uses: docker/metadata-action@v5.3.0
with:
flavor: |
latest=true
tags: |
type=sha
# TODO: custome image tag so that it can be done a: tag_describe=$(git describe --tags | sed 's/-g/-/g')
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.environments }}
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/build-push-action@v4.0.0
uses: docker/build-push-action@v5.1.0
with:
context: ./${{ matrix.environments }}
file: ./${{ matrix.environments }}/Dockerfile
Expand All @@ -111,7 +114,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%SZ')
#TODO implement to thing below !
TAG=$(git describe --tags | sed 's/-g/-/g')
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 a2fea3a

Please sign in to comment.