forked from CGI-FR/IoT-Hub-Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
E068097
committed
Dec 13, 2024
1 parent
2fdb6b2
commit 9f08f27
Showing
1 changed file
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,14 +28,14 @@ jobs: | |
- id: docker-tag | ||
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1 | ||
|
||
- name: Configure AWS credentials | ||
id: aws-credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# Should use us-east-1 region to push to ECR public registry | ||
aws-region: us-east-1 | ||
# - name: Configure AWS credentials | ||
# id: aws-credentials | ||
# uses: aws-actions/configure-aws-credentials@v4 | ||
# with: | ||
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# # Should use us-east-1 region to push to ECR public registry | ||
# aws-region: us-east-1 | ||
|
||
- name: Docker Login to ACR | ||
# You may pin to the exact commit or the version. | ||
|
@@ -45,11 +45,11 @@ jobs: | |
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v2 | ||
with: | ||
registry-type: public | ||
# - name: Login to Amazon ECR | ||
# id: login-ecr | ||
# uses: aws-actions/amazon-ecr-login@v2 | ||
# with: | ||
# registry-type: public | ||
|
||
- name: Docker meta | ||
id: meta | ||
|
@@ -133,10 +133,10 @@ jobs: | |
working-directory: arm-templates/templates/azure | ||
run: sed -i 's/ghcr.io\/cgi-fr\/iothub-portal:latest/ghcr.io\/cgi-fr\/iothub-portal:${{ fromJSON(steps.version.outputs.json).labels['org.opencontainers.image.version'] }}/g' app_service.bicep | ||
|
||
- name: Update IoTHub Portal docker image tag in awsdeploy.yml | ||
working-directory: arm-templates/templates/aws | ||
run: | | ||
sed -i 's/public.ecr.aws\/cgi-fr\/iothub-portal:latest/public.ecr.aws\/cgi-fr\/iothub-portal:${{ fromJSON(steps.version.outputs.json).labels['org.opencontainers.image.version'] }}/g' awsdeploy.yml | ||
# - name: Update IoTHub Portal docker image tag in awsdeploy.yml | ||
# working-directory: arm-templates/templates/aws | ||
# run: | | ||
# sed -i 's/public.ecr.aws\/cgi-fr\/iothub-portal:latest/public.ecr.aws\/cgi-fr\/iothub-portal:${{ fromJSON(steps.version.outputs.json).labels['org.opencontainers.image.version'] }}/g' awsdeploy.yml | ||
|
||
- name: Generate ARM file | ||
working-directory: arm-templates/templates/azure | ||
|
@@ -148,11 +148,11 @@ jobs: | |
files: 'arm-templates/templates/azure/*.json' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload aws templates to release assets | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'arm-templates/templates/aws/*.yml' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Upload aws templates to release assets | ||
# uses: AButler/[email protected] | ||
# with: | ||
# files: 'arm-templates/templates/aws/*.yml' | ||
# repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create PR for template updates | ||
uses: peter-evans/create-pull-request@v7 | ||
|