From efa42eaac4684e518030485eed238961e028380a Mon Sep 17 00:00:00 2001 From: garciagenrique Date: Fri, 15 Dec 2023 17:07:43 +0000 Subject: [PATCH] test first and second part of CI - 4 --- .github/workflows/docker-autobuild.yaml | 32 ++++++++++++------------- containers/iam-rucio-sync/Dockerfile | 1 + 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docker-autobuild.yaml b/.github/workflows/docker-autobuild.yaml index 07d6c71c..005c59c1 100644 --- a/.github/workflows/docker-autobuild.yaml +++ b/.github/workflows/docker-autobuild.yaml @@ -4,9 +4,9 @@ on: push: branches: - ci_changes_in_containers - # pull_request: - # branches: - # - main +# pull_request: +# branches: +# - main env: REGISTRY: ghcr.io @@ -43,7 +43,7 @@ jobs: echo "$dir was changed" done - build-and-push-changed-container: + build-and-push-modified-containers: needs: build-matrix-from-changed-dirs runs-on: ubuntu-latest strategy: @@ -87,16 +87,16 @@ jobs: # ghcr.io/vre-hub/{vre}-{container_name}:{tag} images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}-${{ matrix.containers }} - # - name: Build and push ${{ matrix.containers }} - # id: build - # uses: docker/build-push-action@v5.1.0 - # with: - # context: ${{ matrix.containers }} - # file: ${{ matrix.containers }}/Dockerfile - # push: true - # tags: ${{ steps.metadata.outputs.tags }} - # labels: ${{ steps.metadata.outputs.labels }} - # build-args: | - # BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%SZ') - # TAG=${{ env.RELEASE_VERSION }} +# - name: Build and push ${{ matrix.containers }} +# id: build +# uses: docker/build-push-action@v5.1.0 +# with: +# context: ${{ matrix.containers }} +# file: ${{ matrix.containers }}/Dockerfile +# push: true +# tags: ${{ steps.metadata.outputs.tags }} +# labels: ${{ steps.metadata.outputs.labels }} +# build-args: | +# BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%SZ') +# TAG=${{ env.RELEASE_VERSION }} diff --git a/containers/iam-rucio-sync/Dockerfile b/containers/iam-rucio-sync/Dockerfile index 3f5c6d32..77501d72 100644 --- a/containers/iam-rucio-sync/Dockerfile +++ b/containers/iam-rucio-sync/Dockerfile @@ -14,3 +14,4 @@ COPY requirements.txt sync_iam_rucio.py iam-sync.conf /home/ RUN pip install -r /home/requirements.txt ENTRYPOINT ["/bin/bash"] +