From e5bef97285560026d970f2d3b01c55f2f9082c95 Mon Sep 17 00:00:00 2001 From: ruffsl Date: Wed, 8 Mar 2023 12:26:11 +0100 Subject: [PATCH] Modify build and push steps for dev tag --- .github/workflows/update_ci_image.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update_ci_image.yaml b/.github/workflows/update_ci_image.yaml index 8abc146ea8..115863340d 100644 --- a/.github/workflows/update_ci_image.yaml +++ b/.github/workflows/update_ci_image.yaml @@ -108,20 +108,19 @@ jobs: - name: Image digest if: steps.config.outputs.trigger == 'true' run: echo ${{ steps.docker_build.outputs.digest }} - - name: Build and push ${{ github.ref_name }} + - name: Build and push ${{ github.ref_name }}-dev if: steps.config.outputs.trigger == 'true' id: docker_build uses: docker/build-push-action@v4 with: pull: true push: true - no-cache: ${{ steps.config.outputs.no_cache }} - cache-from: type=registry,ref=ghcr.io/ros-planning/navigation2:${{ github.ref_name }} + cache-from: type=registry,ref=ghcr.io/ros-planning/navigation2:${{ github.ref_name }}-dev cache-to: type=inline - target: builder + target: tester tags: | - ghcr.io/ros-planning/navigation2:${{ github.ref_name }} - ghcr.io/ros-planning/navigation2:${{ github.ref_name }}-${{ steps.config.outputs.timestamp }} + ghcr.io/ros-planning/navigation2:${{ github.ref_name }}-dev + ghcr.io/ros-planning/navigation2:${{ github.ref_name }}-dev-${{ steps.config.outputs.timestamp }} - name: Image digest if: steps.config.outputs.trigger == 'true' run: echo ${{ steps.docker_build.outputs.digest }}