From 0fb6e2513f7023bd1ce8413e4f81cae0748062de Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 9 May 2023 12:23:53 +0200 Subject: [PATCH] Ensure we get a single tag when dealing with local docker image --- .github/workflows/tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20e22ea..cc2738a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -99,10 +99,14 @@ jobs: push: ${{ github.ref_type == 'tag' }} tags: ${{ steps.ecsmeta.outputs.tags }} + - name: Get a single tag + id: ecstag + run: echo "tag=${{ env.REGISTRY }}/${{ env.ECS_IMAGE_NAME }}:${{ github.ref_name }}" >> $GITHUB_OUTPUT + - name: Run ecs image run: | docker images - docker run --name ejabberd -d -p 5222:5222 ${{ steps.ecsmeta.outputs.tags }} + docker run --name ejabberd -d -p 5222:5222 ${{ steps.ecstag.outputs.tag }} - name: Wait ejabberd started run: | @@ -118,7 +122,7 @@ jobs: - name: Save image run: | - docker image save ${{ steps.ecsmeta.outputs.tags }} --output ejabberd-latest.tar + docker image save ${{ steps.ecstag.outputs.tag }} --output ejabberd-latest.tar - name: Upload image uses: actions/upload-artifact@v3