Skip to content

Commit

Permalink
Build images for linux/amd64, linux/arm/v7 and linux/arm64
Browse files Browse the repository at this point in the history
In addition to the previous linux/amd64 platform, this now builds the
Docker images for the additional platforms:

* linux/arm/v7
* linux/arm64
  • Loading branch information
multani committed Nov 6, 2023
1 parent f7d95a0 commit 419b794
Show file tree
Hide file tree
Showing 20 changed files with 104 additions and 50 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/template-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,36 @@ on:
type: string

jobs:
prepare:
name: Prepare Build Matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.platforms.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create matrix
id: platforms
run: |
echo "matrix=$(echo '"${{ inputs.platforms }}"' | jq -cr '. / ","')" >> "$GITHUB_OUTPUT"
- name: Show matrix
run: |
echo ${{ steps.platforms.outputs.matrix }}
build:
name: Build
runs-on: ubuntu-latest
needs:
- prepare

strategy:
fail-fast: false

matrix:
platforms: ${{ fromJson(needs.prepare.outputs.matrix) }}

steps:
- uses: actions/checkout@v4

Expand All @@ -38,7 +65,7 @@ jobs:
id: docker-setup
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ inputs.platforms }}
platforms: ${{ matrix.platforms }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -51,7 +78,7 @@ jobs:
load: true # load the image built locally for later use
build-args: |-
NOMAD_VERSION=${{ steps.meta.outputs.nomad }}
platforms: ${{ inputs.platforms }}
platforms: ${{ matrix.platforms }}
push: false
tags: local/nomad:test

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/template-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
run: |
echo "nomad=$(cat nomad-version)" >> "$GITHUB_OUTPUT"
echo "git=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
echo "pretty-platforms=$(echo ${{ inputs.platforms }} | sed 's/,/`, `/g')" >> "$GITHUB_OUTPUT"
- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -76,3 +77,5 @@ jobs:
```shell
docker pull multani/nomad:${{ steps.meta.outputs.git }}
```
The image is available on the following platforms: `${{ steps.meta.outputs.pretty-platforms }}`.
2 changes: 1 addition & 1 deletion .github/workflows/v1.2.x-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
name: Test
uses: ./.github/workflows/template-build.yml
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.3.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.2.x-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
uses: ./.github/workflows/template-release.yml
secrets: inherit
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.2.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.3.x-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
name: Test
uses: ./.github/workflows/template-build.yml
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.3.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.3.x-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
uses: ./.github/workflows/template-release.yml
secrets: inherit
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.3.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.4.x-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
name: Test
uses: ./.github/workflows/template-build.yml
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.4.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.4.x-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
uses: ./.github/workflows/template-release.yml
secrets: inherit
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.4.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.5.x-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
name: Test
uses: ./.github/workflows/template-build.yml
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.5.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.5.x-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
uses: ./.github/workflows/template-release.yml
secrets: inherit
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.5.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.6.x-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
name: Test
uses: ./.github/workflows/template-build.yml
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.6.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.6.x-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
uses: ./.github/workflows/template-release.yml
secrets: inherit
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.6.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.7.x-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
name: Test
uses: ./.github/workflows/template-build.yml
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.7.x
2 changes: 1 addition & 1 deletion .github/workflows/v1.7.x-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
uses: ./.github/workflows/template-release.yml
secrets: inherit
with:
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
directory: v1.7.x
16 changes: 10 additions & 6 deletions v1.2.x/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM debian:12.2-slim
FROM --platform=$TARGETPLATFORM debian:12.2-slim

# Fetch the target information injected by Docker build
ARG TARGETOS
ARG TARGETARCH

SHELL ["/bin/bash", "-x", "-c", "-o", "pipefail"]

Expand All @@ -23,8 +27,8 @@ RUN apt-get update \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*

ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip \
nomad_${NOMAD_VERSION}_linux_amd64.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS \
nomad_${NOMAD_VERSION}_SHA256SUMS
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
Expand All @@ -38,10 +42,10 @@ RUN apt-get update \
&& export GNUPGHOME \
&& gpg --keyserver pgp.mit.edu --keyserver keys.openpgp.org --keyserver keyserver.ubuntu.com --recv-keys "C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F" \
&& gpg --batch --verify nomad_${NOMAD_VERSION}_SHA256SUMS.sig nomad_${NOMAD_VERSION}_SHA256SUMS \
&& grep nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_linux_amd64.zip \
&& grep nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
&& chmod +x /bin/nomad \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& apt-get autoremove --purge --yes \
gnupg \
unzip \
Expand Down
16 changes: 10 additions & 6 deletions v1.3.x/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM debian:12.2-slim
FROM --platform=$TARGETPLATFORM debian:12.2-slim

# Fetch the target information injected by Docker build
ARG TARGETOS
ARG TARGETARCH

SHELL ["/bin/bash", "-x", "-c", "-o", "pipefail"]

Expand All @@ -23,8 +27,8 @@ RUN apt-get update \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*

ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip \
nomad_${NOMAD_VERSION}_linux_amd64.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS \
nomad_${NOMAD_VERSION}_SHA256SUMS
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
Expand All @@ -38,10 +42,10 @@ RUN apt-get update \
&& export GNUPGHOME \
&& gpg --keyserver pgp.mit.edu --keyserver keys.openpgp.org --keyserver keyserver.ubuntu.com --recv-keys "C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F" \
&& gpg --batch --verify nomad_${NOMAD_VERSION}_SHA256SUMS.sig nomad_${NOMAD_VERSION}_SHA256SUMS \
&& grep nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_linux_amd64.zip \
&& grep nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
&& chmod +x /bin/nomad \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& apt-get autoremove --purge --yes \
gnupg \
unzip \
Expand Down
16 changes: 10 additions & 6 deletions v1.4.x/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM debian:12.2-slim
FROM --platform=$TARGETPLATFORM debian:12.2-slim

# Fetch the target information injected by Docker build
ARG TARGETOS
ARG TARGETARCH

SHELL ["/bin/bash", "-x", "-c", "-o", "pipefail"]

Expand All @@ -23,8 +27,8 @@ RUN apt-get update \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*

ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip \
nomad_${NOMAD_VERSION}_linux_amd64.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS \
nomad_${NOMAD_VERSION}_SHA256SUMS
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
Expand All @@ -38,10 +42,10 @@ RUN apt-get update \
&& export GNUPGHOME \
&& gpg --keyserver pgp.mit.edu --keyserver keys.openpgp.org --keyserver keyserver.ubuntu.com --recv-keys "C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F" \
&& gpg --batch --verify nomad_${NOMAD_VERSION}_SHA256SUMS.sig nomad_${NOMAD_VERSION}_SHA256SUMS \
&& grep nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_linux_amd64.zip \
&& grep nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
&& chmod +x /bin/nomad \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& apt-get autoremove --purge --yes \
gnupg \
unzip \
Expand Down
16 changes: 10 additions & 6 deletions v1.5.x/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM debian:12.2-slim
FROM --platform=$TARGETPLATFORM debian:12.2-slim

# Fetch the target information injected by Docker build
ARG TARGETOS
ARG TARGETARCH

SHELL ["/bin/bash", "-x", "-c", "-o", "pipefail"]

Expand All @@ -23,8 +27,8 @@ RUN apt-get update \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*

ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip \
nomad_${NOMAD_VERSION}_linux_amd64.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS \
nomad_${NOMAD_VERSION}_SHA256SUMS
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
Expand All @@ -38,10 +42,10 @@ RUN apt-get update \
&& export GNUPGHOME \
&& gpg --keyserver pgp.mit.edu --keyserver keys.openpgp.org --keyserver keyserver.ubuntu.com --recv-keys "C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F" \
&& gpg --batch --verify nomad_${NOMAD_VERSION}_SHA256SUMS.sig nomad_${NOMAD_VERSION}_SHA256SUMS \
&& grep nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_linux_amd64.zip \
&& grep nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
&& chmod +x /bin/nomad \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& apt-get autoremove --purge --yes \
gnupg \
unzip \
Expand Down
16 changes: 10 additions & 6 deletions v1.6.x/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM debian:12.2-slim
FROM --platform=$TARGETPLATFORM debian:12.2-slim

# Fetch the target information injected by Docker build
ARG TARGETOS
ARG TARGETARCH

SHELL ["/bin/bash", "-x", "-c", "-o", "pipefail"]

Expand All @@ -23,8 +27,8 @@ RUN apt-get update \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*

ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip \
nomad_${NOMAD_VERSION}_linux_amd64.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS \
nomad_${NOMAD_VERSION}_SHA256SUMS
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
Expand All @@ -38,10 +42,10 @@ RUN apt-get update \
&& export GNUPGHOME \
&& gpg --keyserver pgp.mit.edu --keyserver keys.openpgp.org --keyserver keyserver.ubuntu.com --recv-keys "C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F" \
&& gpg --batch --verify nomad_${NOMAD_VERSION}_SHA256SUMS.sig nomad_${NOMAD_VERSION}_SHA256SUMS \
&& grep nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_linux_amd64.zip \
&& grep nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
&& chmod +x /bin/nomad \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& apt-get autoremove --purge --yes \
gnupg \
unzip \
Expand Down
16 changes: 10 additions & 6 deletions v1.7.x/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM debian:12.2-slim
FROM --platform=$TARGETPLATFORM debian:12.2-slim

# Fetch the target information injected by Docker build
ARG TARGETOS
ARG TARGETARCH

SHELL ["/bin/bash", "-x", "-c", "-o", "pipefail"]

Expand All @@ -23,8 +27,8 @@ RUN apt-get update \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*

ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip \
nomad_${NOMAD_VERSION}_linux_amd64.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS \
nomad_${NOMAD_VERSION}_SHA256SUMS
ADD https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
Expand All @@ -38,10 +42,10 @@ RUN apt-get update \
&& export GNUPGHOME \
&& gpg --keyserver pgp.mit.edu --keyserver keys.openpgp.org --keyserver keyserver.ubuntu.com --recv-keys "C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F" \
&& gpg --batch --verify nomad_${NOMAD_VERSION}_SHA256SUMS.sig nomad_${NOMAD_VERSION}_SHA256SUMS \
&& grep nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_linux_amd64.zip \
&& grep nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS | sha256sum -c \
&& unzip -d /bin nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
&& chmod +x /bin/nomad \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_linux_amd64.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& rm -rf "$GNUPGHOME" nomad_${NOMAD_VERSION}_${TARGETOS}_${TARGETARCH}.zip nomad_${NOMAD_VERSION}_SHA256SUMS nomad_${NOMAD_VERSION}_SHA256SUMS.sig \
&& apt-get autoremove --purge --yes \
gnupg \
unzip \
Expand Down

0 comments on commit 419b794

Please sign in to comment.