Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .github/workflows/manual_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:
description: 'Tag to build and release'
required: true

env:
IMAGE_NAME: ${{ secrets.EWX_WORKER_NODE_SERVER }}
AWS_REGION: us-east-1
# env:
# IMAGE_NAME: ${{ secrets.EWX_WORKER_NODE_SERVER }}
# AWS_REGION: us-east-1

jobs:
build-and-push:
Expand All @@ -24,16 +24,16 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- name: Configure 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 }}
aws-region: us-east-1
mask-aws-account-id: true
- name: Log in to ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
# - name: Configure 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 }}
# aws-region: us-east-1
# mask-aws-account-id: true
# - name: Log in to ECR
# id: login-ecr
# uses: aws-actions/amazon-ecr-login@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -52,5 +52,4 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ steps.login-ecr.outputs.registry }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.tag }}
ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.tag }}
28 changes: 13 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches: ['master']

env:
IMAGE_NAME: ${{ secrets.EWX_WORKER_NODE_SERVER }}
AWS_REGION: us-east-1
# env:
# IMAGE_NAME: ${{ secrets.EWX_WORKER_NODE_SERVER }}
# AWS_REGION: us-east-1

jobs:
cancel-previous:
Expand Down Expand Up @@ -56,17 +56,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
mask-aws-account-id: true
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: us-east-1
# mask-aws-account-id: true

- name: Log in to ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
# - name: Log in to ECR
# id: login-ecr
# uses: aws-actions/amazon-ecr-login@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
Expand Down Expand Up @@ -94,5 +94,3 @@ jobs:
tags: |
ghcr.io/${{ github.repository }}/ewx-worker-node-server:latest
ghcr.io/${{ github.repository }}/ewx-worker-node-server:${{ needs.release-module.outputs.new_version }}
${{ steps.login-ecr.outputs.registry }}/${{ env.IMAGE_NAME }}:latest
${{ steps.login-ecr.outputs.registry }}/${{ env.IMAGE_NAME }}:${{ needs.release-module.outputs.new_version }}
1 change: 1 addition & 0 deletions docs/env-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ _Object containing the following properties:_
| `SHUTDOWN_TIMEOUT_MS` | Timeout in milliseconds for graceful shutdown (default: 30000) | `number` (_>0_) | `30000` |
| `ADMIN_SERVER_PORT` | Port number for admin server (default: 3003) | `number` (_>0_) | `3003` |
| `ADMIN_API_KEY` | API key for admin endpoints authentication. Must be at least 32 characters. If not set, admin endpoints will be accessible without authentication. | `string` (_min length: 32_) | |
| `VCC_PROXY_URL` | VCC proxy URL. | `string` (_url_) | `'https://ew-vcc-proxy.energyweb.org'` |

_(\*) Required._
Loading
Loading