File tree 2 files changed +20
-23
lines changed
2 files changed +20
-23
lines changed Original file line number Diff line number Diff line change 19
19
if : ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
20
20
runs-on : ubuntu-latest
21
21
env :
22
- REPO_DIR : /opt/release-update-dois
22
+ REPO_DIR : /opt/release-update-dois
23
23
steps :
24
24
- uses : actions/checkout@v4
25
25
@@ -59,26 +59,34 @@ jobs:
59
59
needs : docker-build
60
60
runs-on : ubuntu-latest
61
61
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
+
62
72
- env :
63
- AWS_REGION : us-east-1
73
+ AWS_REGION : us-east-1
64
74
uses : aws-actions/configure-aws-credentials@v4
65
75
with :
66
76
role-to-assume : ${{ vars.AWS_ROLE }}
67
77
aws-region : ${{ env.AWS_REGION }}
68
78
69
79
- id : login-ecr
70
80
uses : aws-actions/amazon-ecr-login@v2
71
-
72
- - uses : actions/download-artifact@v4
73
81
with :
74
- name : image-artifact
75
- path : /tmp
82
+ registry-type : public
76
83
77
84
- 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 }}
81
89
run : |
82
90
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
Original file line number Diff line number Diff line change 52
52
<dependency >
53
53
<groupId >org.reactome.release</groupId >
54
54
<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 >
67
56
</dependency >
68
57
69
58
<!-- Test dependencies -->
You can’t perform that action at this time.
0 commit comments