Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Tag images with "stable"
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaretskyi committed Jun 15, 2021
1 parent b5b1b47 commit d33a470
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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

0 comments on commit d33a470

Please sign in to comment.