Skip to content

Commit 02d19ef

Browse files
author
Derek Tang
committed
public ecr
1 parent 719a837 commit 02d19ef

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

.github/workflows/ci.yml

+19-11
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
2020
runs-on: ubuntu-latest
2121
env:
22-
REPO_DIR : /opt/release-update-dois
22+
REPO_DIR: /opt/release-update-dois
2323
steps:
2424
- uses: actions/checkout@v4
2525

@@ -59,26 +59,34 @@ jobs:
5959
needs: docker-build
6060
runs-on: ubuntu-latest
6161
steps:
62+
- uses: actions/download-artifact@v4
63+
with:
64+
name: image-artifact
65+
path: /tmp
66+
67+
- id: get-hash
68+
run: |
69+
FULL_SHA=${{ github.sha }}
70+
echo "SHORT_SHA=${FULL_SHA:0:7}" >> $GITHUB_OUTPUT
71+
6272
- env:
63-
AWS_REGION : us-east-1
73+
AWS_REGION: us-east-1
6474
uses: aws-actions/configure-aws-credentials@v4
6575
with:
6676
role-to-assume: ${{ vars.AWS_ROLE }}
6777
aws-region: ${{ env.AWS_REGION }}
6878

6979
- id: login-ecr
7080
uses: aws-actions/amazon-ecr-login@v2
71-
72-
- uses: actions/download-artifact@v4
7381
with:
74-
name: image-artifact
75-
path: /tmp
82+
registry-type: public
7683

7784
- env:
78-
AWS_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
79-
AWS_REPO : release-update-dois
80-
IMG_TAG : latest
85+
AWS_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
86+
AWS_REGISTRY_ALIAS: k2y5k6e2
87+
AWS_REPO: release-update-dois
88+
IMG_TAG: ${{ steps.get-hash.outputs.SHORT_SHA }}
8189
run: |
8290
docker load --input /tmp/image.tar
83-
docker image tag tmp-tag $AWS_REGISTRY/$AWS_REPO:$IMG_TAG
84-
docker push $AWS_REGISTRY/$AWS_REPO:$IMG_TAG
91+
docker image tag tmp-tag $AWS_REGISTRY/$AWS_REGISTRY_ALIAS/$AWS_REPO:$IMG_TAG
92+
docker push $AWS_REGISTRY/$AWS_REGISTRY_ALIAS/$AWS_REPO:$IMG_TAG

pom.xml

+1-12
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,7 @@
5252
<dependency>
5353
<groupId>org.reactome.release</groupId>
5454
<artifactId>release-common-lib</artifactId>
55-
<version>1.2.0</version>
56-
<exclusions>
57-
<exclusion>
58-
<groupId>org.reactome.base</groupId>
59-
<artifactId>reactome-base</artifactId>
60-
</exclusion>
61-
</exclusions>
62-
</dependency>
63-
<dependency>
64-
<groupId>org.reactome.base</groupId>
65-
<artifactId>reactome-base-core</artifactId>
66-
<version>1.0.1-SNAPSHOT</version>
55+
<version>2.0.0-SNAPSHOT</version>
6756
</dependency>
6857

6958
<!-- Test dependencies -->

0 commit comments

Comments
 (0)