|
14 | 14 | build-release: |
15 | 15 | runs-on: ubuntu-latest |
16 | 16 | # id=68949242 => interscript-ci user |
17 | | - if: ${{ github.event.release.author.id == 68949242 }} #contains(github.event.release.body, '#releaseed-by-ci') |
| 17 | + if: ${{ github.event.release.author.id == 68949242 }} |
18 | 18 | steps: |
19 | | - - uses: actions/checkout@v2 |
| 19 | + - uses: actions/checkout@v7 |
20 | 20 | - name: setup env vars |
21 | 21 | run: | |
22 | 22 | RELEASE_BODY="${{github.event.release.body}}" |
|
45 | 45 | buildargs: INTERSCRIPT_GEM_VERSION |
46 | 46 |
|
47 | 47 | - name: dispatch "infrastructure-lambda-api" |
48 | | - uses: peter-evans/repository-dispatch@v1 |
| 48 | + uses: peter-evans/repository-dispatch@v4 |
49 | 49 | with: |
50 | 50 | token: ${{ env.GITHUB_PUSH_TOKEN }} |
51 | 51 | repository: interscript/infrastructure-lambda-api |
|
55 | 55 | "workflow": "publish-ecr.yml", |
56 | 56 | "api_tag_name": "${{env.RELEASE_TAG_NAME}}" |
57 | 57 | } |
58 | | -
|
59 | | -# - name: setup-aws-credentials |
60 | | -# uses: aws-actions/configure-aws-credentials@v1 |
61 | | -# with: |
62 | | -# aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} |
63 | | -# aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} |
64 | | -# aws-region: us-east-1 |
65 | | -# |
66 | | -# - name: ecr-login |
67 | | -# id: login-ecr |
68 | | -# uses: aws-actions/amazon-ecr-login@v1 |
69 | | -# |
70 | | -# - name: push to ecr |
71 | | -# env: |
72 | | -# ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} |
73 | | -# working-directory: .github/lambda |
74 | | -# run: | |
75 | | -# docker build -t $ECR_REGISTRY/interscript-api:${{env.RELEASE_TAG_NAME}} . |
76 | | -# docker push $ECR_REGISTRY/$ECR_REPOSITORY:${{env.RELEASE_TAG_NAME}} |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | -# - name: push to github package |
82 | | -# uses: elgohr/Publish-Docker-Github-Action@master |
83 | | -# with: |
84 | | -# workdir: .github/lambda |
85 | | -# dockerfile: Dockerfile |
86 | | -# tags: "latest,${{env.RELEASE_TAG_NAME}}" |
87 | | -# registry: "" |
88 | | -# name: "awslambda-interscript-api" |
89 | | -# username: "${{env.AWS_ACCESS_KEY_ID}}" |
90 | | -# password: "${{env.}}" |
91 | | -# buildargs: INTERSCRIPT_GEM_VERSION |
92 | | - |
93 | | -# - name: login github package |
94 | | -# uses: docker/login-action@v1 |
95 | | -# with: |
96 | | -# username: ${{ secrets.DOCKERHUB_USERNAME }} |
97 | | -# password: ${{ secrets.DOCKERHUB_TOKEN }} |
98 | | -# - name: build and push |
99 | | -# id: docker_build |
100 | | -# uses: docker/build-push-action@v2 |
101 | | -# with: |
102 | | -# push: true |
103 | | -# tags: user/app:latest |
104 | | - |
105 | | -# - name: setup ruby+install |
106 | | -# uses: ruby/setup-ruby@v1.75.0 |
107 | | -# with: |
108 | | -# bundler-cache: false |
109 | | -# ruby-version: 2.7 |
110 | | - |
111 | | -# - name: build "-api" source |
112 | | -# working-directory: git |
113 | | -# run: | |
114 | | -# cp Gemfile* lib/ |
115 | | -# zip -r ${AWSL_SRC_ZIP} lib |
116 | | - |
117 | | -# - name: build "-layer" |
118 | | -# working-directory: git/.github/awsl-layer-docker |
119 | | -# run: | |
120 | | -# ls -all |
121 | | -# bash build.sh |
122 | | -# cp libs.zip $AWSL_LAYER_ZIP |
123 | | - |
124 | | -# - name: upload lambda layer to current release |
125 | | -# uses: softprops/action-gh-release@v1 |
126 | | -# with: |
127 | | -# tag_name: ${{env.RELEASE_TAG_NAME}} |
128 | | -# files: | |
129 | | -# ${{env.AWSL_SRC_ZIP}} |
130 | | -# ${{env.AWSL_LAYER_ZIP}} |
131 | | - |
132 | | -# - name: dispatch "infrastructure-lambda-api" |
133 | | -# uses: peter-evans/repository-dispatch@v1 |
134 | | -# with: |
135 | | -# token: ${{ env.GITHUB_PUSH_TOKEN }} |
136 | | -# repository: interscript/infrastructure-lambda-api |
137 | | -# event-type: ${{ github.repository }} |
138 | | -# client-payload: >- |
139 | | -# { |
140 | | -# "workflow": "on-api-release.yml", |
141 | | -# "api_tag_name": "${{env.RELEASE_TAG_NAME}}" |
142 | | -# } |
0 commit comments