File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed
Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 4040
4141 - name : Generate common-nix.vars.pkr.hcl
4242 run : |
43- PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ env.POSTGRES_MAJOR_VERSION }}'"]' ansible/vars.yml)
43+ PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ env.POSTGRES_MAJOR_VERSION }}'"]' ansible/vars.yml)
4444 PG_VERSION=$(echo "$PG_VERSION" | tr -d '"') # Remove any surrounding quotes
4545 echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
4646 # Ensure there's a newline at the end of the file
Original file line number Diff line number Diff line change 5151 - name : Run checks if triggered manually
5252 if : ${{ github.event_name == 'workflow_dispatch' }}
5353 run : |
54- SUFFIX=$(sudo nix run nixpkgs#yq -- ".postgres_release[\"postgres${{ matrix.postgres_version }}\"]" ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/')
54+ SUFFIX=$(nix run nixpkgs#yq -- ".postgres_release[\"postgres${{ matrix.postgres_version }}\"]" ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/')
5555 if [[ -z "$SUFFIX" ]] ; then
5656 echo "Version must include non-numeric characters if built manually."
5757 exit 1
6262
6363 - name : Generate common-nix.vars.pkr.hcl
6464 run : |
65- PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
65+ PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
6666 PG_VERSION=$(echo "$PG_VERSION" | tr -d '"') # Remove any surrounding quotes
6767 echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
6868 # Ensure there's a newline at the end of the file
Original file line number Diff line number Diff line change 9393 id : image
9494 run : |
9595 if [[ "${{ matrix.arch }}" == "arm64" ]]; then
96- pg_version=$(sudo nix run nixpkgs#nushell -- -c '
96+ pg_version=$(nix run nixpkgs#nushell -- -c '
9797 let version = "${{ matrix.postgres.version }}"
9898 let release_key = if ($version | str contains "orioledb") {
9999 $"postgresorioledb-17"
Original file line number Diff line number Diff line change 9090 id : image
9191 run : |
9292 if [[ "${{ matrix.arch }}" == "arm64" ]]; then
93- pg_version=$(sudo nix run nixpkgs#nushell -- -c '
93+ pg_version=$(nix run nixpkgs#nushell -- -c '
9494 let version = "${{ matrix.postgres.version }}"
9595 let release_key = if ($version | str contains "orioledb") {
9696 $"postgresorioledb-17"
Original file line number Diff line number Diff line change 9393 - name : Grab release version
9494 id : process_release_version
9595 run : |
96- VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
96+ VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
9797 VERSION=$(echo $VERSION | tr -d '"') # Remove any surrounding quotes
9898 echo "version=$VERSION" >> "$GITHUB_OUTPUT"
9999 echo "major_version=$(echo $VERSION | cut -d'.' -f1)" >> "$GITHUB_OUTPUT"
Original file line number Diff line number Diff line change 5454 - name : Run checks if triggered manually
5555 if : ${{ github.event_name == 'workflow_dispatch' }}
5656 run : |
57- SUFFIX=$(sudo nix run nixpkgs#yq -- ".postgres_release[\"postgres${{ matrix.postgres_version }}\"]" ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/')
57+ SUFFIX=$(nix run nixpkgs#yq -- ".postgres_release[\"postgres${{ matrix.postgres_version }}\"]" ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/')
5858 if [[ -z $SUFFIX ]] ; then
5959 echo "Version must include non-numeric characters if built manually."
6060 exit 1
Original file line number Diff line number Diff line change 7272
7373 - name : Generate common-nix.vars.pkr.hcl
7474 run : |
75- PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
75+ PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
7676 PG_VERSION=$(echo "$PG_VERSION" | tr -d '"') # Remove any surrounding quotes
7777 echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
7878 # Ensure there's a newline at the end of the file
You can’t perform that action at this time.
0 commit comments