Skip to content

Commit

Permalink
Update packer to 1.9.4 (#301)
Browse files Browse the repository at this point in the history
* Update packer to 1.9.4

* Add bin to PACKER_PLUGIN_PATH for the packer-builder-arm binary

* Reverse plugin path order
  • Loading branch information
dbast authored Sep 9, 2023
1 parent 723ad66 commit fec4cd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/archlinuxarm-armv7-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install Packer
uses: hashicorp-contrib/setup-packer@v2
with:
packer-version: 1.9.1
packer-version: 1.9.4

- name: Build image
run: sudo packer build -var docker_user=$docker_user -var docker_password=$docker_password -var docker_repository=$docker_repository boards/armv7/archlinuxarm-docker.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/archlinuxarm-armv8-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install Packer
uses: hashicorp-contrib/setup-packer@v2
with:
packer-version: 1.9.1
packer-version: 1.9.4

- name: Build image
run: sudo packer build -var docker_user=$docker_user -var docker_password=$docker_password -var docker_repository=$docker_repository boards/armv8/archlinuxarm-docker.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Install Packer
uses: hashicorp-contrib/setup-packer@v2
with:
packer-version: 1.9.1
packer-version: 1.9.4

- name: Retrieve cache
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY . .

RUN go build -o packer-builder-arm

ENV PACKER_VERSION 1.9.1
ENV PACKER_VERSION 1.9.4

RUN if [ "$(uname -m)" = "aarch64" ]; then PACKER_ARCH="arm64"; else PACKER_ARCH="amd64"; fi && \
wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_${PACKER_ARCH}.zip -q -O /tmp/packer.zip && \
Expand Down Expand Up @@ -71,7 +71,7 @@ COPY --from=qemu_binaries /binaries/* /usr/bin/
ENV PACKER_LOG=1

# Enable plugin / download caching for consecutive runs
ENV PACKER_PLUGIN_PATH="/build/.packer_plugins"
ENV PACKER_PLUGIN_PATH="/bin:/build/.packer_plugins"
ENV PACKER_CACHE_DIR="/build/.packer_cache"

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit fec4cd5

Please sign in to comment.