From d33a470b4b8a7fbfd9233ebb148e9d5c9127a72c Mon Sep 17 00:00:00 2001 From: Dmytro Maretskyi Date: Tue, 15 Jun 2021 16:44:19 +0200 Subject: [PATCH] Tag images with "stable" --- .github/workflows/release.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebcd687b9..a4e26b9af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: ghcr.io/worldcoin/hubble-commander:${{ steps.tag_name.outputs.SOURCE_TAG }} + tags: ghcr.io/worldcoin/hubble-commander:${{ steps.tag_name.outputs.SOURCE_TAG }},ghcr.io/worldcoin/hubble-commander:stable deploy: name: Deploy to AWS @@ -37,10 +37,6 @@ jobs: matrix: host: [ec2-3-238-223-141.compute-1.amazonaws.com, ec2-3-239-149-30.compute-1.amazonaws.com] steps: - - name: Set tag name - id: tag_name - run: | - echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} - name: Deploy to AWS uses: appleboy/ssh-action@master with: @@ -50,4 +46,4 @@ jobs: script: | docker-compose pull docker-compose up -d - docker images -f "before=ghcr.io/worldcoin/hubble-commander:${{ steps.tag_name.outputs.SOURCE_TAG }}" -f "dangling=true" -q ghcr.io/worldcoin/hubble-commander | xargs docker image rm || true + docker images -f "before=ghcr.io/worldcoin/hubble-commander:stable" -f "dangling=true" -q ghcr.io/worldcoin/hubble-commander | xargs docker image rm || true