From 1df538fd7f9806ac02b25a60b7227f4ab920aada Mon Sep 17 00:00:00 2001 From: ValentinaHutter <85164505+ValentinaHutter@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:00:11 +0100 Subject: [PATCH 1/5] Update main.yaml --- .github/workflows/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bb9d512..75654bb 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -44,7 +44,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build base image run: | - docker build -t sen2like_base -f ./sen2like/Dockerfile-base . + cd ./sen2like/ + docker build -t sen2like_base -f Dockerfile-base . + cd .. - name: Build and push uses: docker/build-push-action@v4 From 428a749c97667512fc0b03706e6d4d7f99fb4808 Mon Sep 17 00:00:00 2001 From: ValentinaHutter <85164505+ValentinaHutter@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:28:18 +0100 Subject: [PATCH 2/5] Update main.yaml --- .github/workflows/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 75654bb..bd89525 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -45,7 +45,7 @@ jobs: - name: Build base image run: | cd ./sen2like/ - docker build -t sen2like_base -f Dockerfile-base . + docker build -t sen2like_base:latest -f Dockerfile-base . cd .. - name: Build and push @@ -53,7 +53,7 @@ jobs: with: context: ./sen2like file: ./sen2like/Dockerfile - build-args: SEN2LIKE_BUILD_IMAGE_TAG=sen2like_base + build-args: SEN2LIKE_BUILD_IMAGE_TAG=sen2like_base:latest push: ${{ github.event_name != 'pull_request' && matrix.os == 'ubuntu-20.04'}} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From a3811dca13405fe5d197f7cc025883bd55c75989 Mon Sep 17 00:00:00 2001 From: ValentinaHutter <85164505+ValentinaHutter@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:48:29 +0100 Subject: [PATCH 3/5] Update main.yaml --- .github/workflows/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bd89525..f6e7274 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -46,6 +46,7 @@ jobs: run: | cd ./sen2like/ docker build -t sen2like_base:latest -f Dockerfile-base . + docker build -t sen2like --build-arg SEN2LIKE_BUILD_IMAGE_TAG=sen2like_base:latest . && docker image prune --filter label=stage=sen2like_build -f cd .. - name: Build and push From bbb3ec7c6ae2eb294447ed934b817b64c8a08268 Mon Sep 17 00:00:00 2001 From: ValentinaHutter <85164505+ValentinaHutter@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:14:10 +0100 Subject: [PATCH 4/5] Update main.yaml --- .github/workflows/main.yaml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f6e7274..bae3f02 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -46,15 +46,6 @@ jobs: run: | cd ./sen2like/ docker build -t sen2like_base:latest -f Dockerfile-base . - docker build -t sen2like --build-arg SEN2LIKE_BUILD_IMAGE_TAG=sen2like_base:latest . && docker image prune --filter label=stage=sen2like_build -f - cd .. + docker build -t ghcr.io/eodcgmbh/sen2like:v4.4.1 --build-arg SEN2LIKE_BUILD_IMAGE_TAG=sen2like_base:latest . && docker image prune --filter label=stage=sen2like_build -f + docker push ghcr.io/eodcgmbh/sen2like:v4.4.1 - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: ./sen2like - file: ./sen2like/Dockerfile - build-args: SEN2LIKE_BUILD_IMAGE_TAG=sen2like_base:latest - push: ${{ github.event_name != 'pull_request' && matrix.os == 'ubuntu-20.04'}} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} From 553814c3dbd14e3f832ab3ada8e03c55b16b4925 Mon Sep 17 00:00:00 2001 From: ValentinaHutter <85164505+ValentinaHutter@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:32:45 +0100 Subject: [PATCH 5/5] Update main.yaml --- .github/workflows/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bae3f02..46859d8 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -36,13 +36,13 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to GitHub Container Registry - if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build base image + - name: Build and push image + if: github.event_name != 'pull_request' run: | cd ./sen2like/ docker build -t sen2like_base:latest -f Dockerfile-base .