Skip to content

Commit

Permalink
fix: contracts deployer nodeJS binary arch
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Jul 2, 2024
1 parent 870452a commit 6a04909
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/infrstructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
cluster:
name: Setup and Test Nomad Cluster
runs-on: ubuntu-22.04
run-name: ${{ github.event.workflow_run.head_branch || github.ref_name }}
timeout-minutes: 180
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}

Expand Down
4 changes: 3 additions & 1 deletion infrastructure/nomad/playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
Profile: {{ environments[env].profile }}
Version: {{ environments[env].version }}
Secrets: {{ environments[env].secrets }}
Hostname: {{ ansible_hostname }}
Build Artifacts: {{ 'yes' if build_artifacts | default(false) else 'no' }}
Build Templates: {{ 'yes' if build_templates | default(false) else 'no' }}
Expand Down Expand Up @@ -236,7 +237,7 @@
{% if artifact.keystore is defined %}
case "{{ environments[env].secrets }}" in
"generate")
PASSPHRASE="{{ lookup('password', '/dev/null', length=1024, chars=["ascii_letters", "digits", ".,:_"]) }}"
PASSPHRASE="{{ lookup('password', '/dev/null', length=1024, chars=['ascii_letters', 'digits', '.,:_<>|/']) }}"

RESULT=$(
{{ keystore_generator.stdout }} generate \
Expand Down Expand Up @@ -644,3 +645,4 @@
Artifacts: {{ 'built' if build_artifacts | default(false) else 'skipped' }}
Templates: {{ 'built' if build_templates | default(false) else 'skipped' }}
Timestamp: {{ now(utc=true, fmt='%a %Y-%m-%d %H:%M:%S UTC') }}
Hostname: {{ ansible_hostname }}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ job "{{ job.name }}" {
{% endfor %}

artifact {
source = "https://nodejs.org/dist/v18.16.1/node-v18.16.1-linux-x64.tar.xz"
source = "https://nodejs.org/dist/v18.16.1/node-v18.16.1-linux-{{ 'x64' if target_system_architecture == 'x86_64' else 'arm64' }}.tar.xz"
options {
archive = false
}
Expand Down Expand Up @@ -101,7 +101,7 @@ job "{{ job.name }}" {

tar \
--extract \
--file local/node-v18.16.1-linux-x64.tar.xz \
--file local/node-v18.16.1-linux-{{ 'x64' if target_system_architecture == 'x86_64' else 'arm64' }}.tar.xz \
--directory /usr/local \
--strip-components=1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ job "{{ job.name }}" {

template {
data = <<-EOH
hostname: {{ ansible_hostname }}
site: datadoghq.com
logs_enabled: true
api_key: {{ datadog_key }}
Expand Down

0 comments on commit 6a04909

Please sign in to comment.