Skip to content

Commit

Permalink
Check if image already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Nov 28, 2024
1 parent dfa1075 commit 7eecb30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:

env:
BASE_IMAGE_VERSION: "rust-1.74.1_ghc-9.6.4"
TARGET_NET: "stagenet"
NODE_VERSION: "16.20.2"
STATIC_NODE_BINARY_IMAGE_NAME: 'static-node-binaries'
AWS_ROLE_TO_ASSUME: "arn:aws:iam::192549843005:role/github_concordium-desktop-wallet"
Expand Down Expand Up @@ -51,13 +52,21 @@ jobs:
with:
mask-password: false

- name: Check if image exist
run: |
aws s3 ls "192549843005.dkr.ecr.eu-west-1.amazonaws.com/concordium/desktop-wallet-ci:test"
echo "EC=$?" >> $GITHUB_ENV
- name: Checkout repository
if: ${{ env.EC }}
uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ github.ref_name }}

- name: build ci image
if: ${{ env.EC }}
uses: docker/build-push-action@v6
with:
push: true
Expand Down

0 comments on commit 7eecb30

Please sign in to comment.