Docker fixes

crt-onboarding-test
Michele Degges 4 years ago
parent 767b38cfbe
commit 2f76d46546

@ -220,7 +220,7 @@ jobs:
path: out/${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
build-docker-light:
name: Docker {{ matrix.arch }} light build
name: Docker light ${{ matrix.arch }} build
needs:
- get-product-version
- build-linux
@ -246,9 +246,9 @@ jobs:
- name: Docker Build (Action)
uses: hashicorp/actions-docker-build@v1
with:
version: ${{env.version}}
target: release-default
arch: ${{matrix.arch}}
version: ${{ env.version }}
target: release-light
arch: ${{ matrix.arch }}
tags: |
docker.io/hashicorp/${{env.repo}}:light
docker.io/hashicorp/${{env.repo}}:light-${{env.version}}
@ -258,7 +258,7 @@ jobs:
public.ecr.aws/hashicorp/${{env.repo}}:${{env.version}}
build-docker-full:
name: Docker {{ matrix.arch }} full build
name: Docker full ${{ matrix.arch }} build
needs:
- get-product-version
- build-linux
@ -284,9 +284,9 @@ jobs:
- name: Docker Build (Action)
uses: hashicorp/actions-docker-build@v1
with:
version: ${{env.version}}
version: ${{ env.version }}
target: release-full
arch: ${{matrix.arch}}
arch: ${{ matrix.arch }}
tags: |
docker.io/hashicorp/${{env.repo}}:full
docker.io/hashicorp/${{env.repo}}:full-${{env.version}}

@ -2,7 +2,7 @@
#
# This Dockerfile contains multiple targets.
# Use 'docker build --target=<name> .' to build one.
# e.g. `docker build --target=release-default .`
# e.g. `docker build --target=release-light .`
#
# All non-dev targets have a VERSION argument that must be provided
# via --build-arg=VERSION=<version> when building.
@ -79,7 +79,7 @@ ENTRYPOINT ["/bin/packer"]
# This image builds from the locally generated binary in ./bin/, and from CI-built binaries within CI.
# To generate the local binary, run `make dev`.
# This image is published to DockerHub under the `light`, `light-$VERSION`, and `latest` tags.
FROM docker.mirror.hashicorp.services/alpine:latest as release-default
FROM docker.mirror.hashicorp.services/alpine:latest as release-light
ARG VERSION
ARG BIN_NAME
@ -130,8 +130,6 @@ RUN git clone https://github.com/hashicorp/packer $GOPATH/src/github.com/hashico
RUN /bin/bash $GOPATH/src/github.com/hashicorp/packer/scripts/build.sh
COPY /bin/ /bin/
WORKDIR $GOPATH
ENTRYPOINT ["/bin/packer"]

Loading…
Cancel
Save