5 Commits

Author SHA1 Message Date
357667b352 chore(release): 1.3.0 [skip ci]
# [1.3.0](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.PackerExtended/compare/v1.2.0...v1.3.0) (2024-06-06)

### Features

* Add helm binary (required for helm package action) ([c32a19a](c32a19ab36))
2024-06-06 11:04:40 +00:00
c32a19ab36 feat: Add helm binary (required for helm package action)
All checks were successful
build-image / Semantic Release (Dry-run) (push) Successful in 18s
build-image / Container image (push) Successful in 5m0s
build-image / Semantic Release (push) Successful in 20s
2024-06-06 20:52:29 +10:00
739047e477 chore(release): 1.2.0 [skip ci]
# [1.2.0](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.PackerExtended/compare/v1.1.0...v1.2.0) (2024-06-06)

### Features

* Add unzip (required for packer action) ([3134776](31347764ae))
2024-06-06 02:16:32 +00:00
77dab0de04 build: Disable provenance for image push
All checks were successful
build-image / Semantic Release (Dry-run) (push) Successful in 18s
build-image / Container image (push) Successful in 4m59s
build-image / Semantic Release (push) Successful in 22s
2024-06-06 12:03:19 +10:00
31347764ae feat: Add unzip (required for packer action)
Some checks failed
build-image / Semantic Release (Dry-run) (push) Successful in 16s
build-image / Container image (push) Failing after 4m46s
build-image / Semantic Release (push) Has been skipped
2024-06-06 11:53:55 +10:00
3 changed files with 26 additions and 3 deletions

View File

@ -86,12 +86,13 @@ jobs:
- name: Build & push container image - name: Build & push container image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
push: true
context: .
tags: code.spamasaurus.com/djpbessems/packer-extended:${{ needs.semrel_dryrun.outputs.version }}
build-args: | build-args: |
REPO_USERNAME=${{ secrets.REPO_USERNAME }} REPO_USERNAME=${{ secrets.REPO_USERNAME }}
REPO_PASSWORD=${{ secrets.REPO_PASSWORD }} REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}
context: .
tags: code.spamasaurus.com/djpbessems/packer-extended:${{ needs.semrel_dryrun.outputs.version }}
provenance: false
push: true
env: env:
DOCKER_HOST: "tcp://docker:2376/" DOCKER_HOST: "tcp://docker:2376/"
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"

View File

@ -1,3 +1,17 @@
# [1.3.0](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.PackerExtended/compare/v1.2.0...v1.3.0) (2024-06-06)
### Features
* Add helm binary (required for helm package action) ([c32a19a](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.PackerExtended/commit/c32a19ab36378ae7263054035ceabfc0510e589e))
# [1.2.0](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.PackerExtended/compare/v1.1.0...v1.2.0) (2024-06-06)
### Features
* Add unzip (required for packer action) ([3134776](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.PackerExtended/commit/31347764ae36478ddbb89735656cb044e6931276))
# [1.1.0](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.PackerExtended/compare/v1.0.0...v1.1.0) (2024-06-06) # [1.1.0](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.PackerExtended/compare/v1.0.0...v1.1.0) (2024-06-06)

View File

@ -13,6 +13,10 @@ ADD https://${REPO_USERNAME}:${REPO_PASSWORD}@sn.itch.fyi/Repository/bin/VMware/
RUN apk --update add --no-cache \ RUN apk --update add --no-cache \
curl \ curl \
jq && \ jq && \
curl -L https://api.github.com/repos/helm/helm/releases/latest | \
jq -r '.tag_name' | \
xargs -I {} curl -L -o /tmp/helm.tar.gz https://get.helm.sh/helm-{}-linux-amd64.tar.gz && \
tar -xzf /tmp/helm.tar.gz --strip-components=1 -C /tmp && \
curl -L https://api.github.com/repos/mikefarah/yq/releases/latest | \ curl -L https://api.github.com/repos/mikefarah/yq/releases/latest | \
jq -r '.assets[] | select(.name | endswith("yq_linux_amd64")) | .browser_download_url' | \ jq -r '.assets[] | select(.name | endswith("yq_linux_amd64")) | .browser_download_url' | \
xargs -I {} curl -L -o /tmp/yq {} && \ xargs -I {} curl -L -o /tmp/yq {} && \
@ -24,6 +28,7 @@ COPY --from=packer /bin/packer /bin/packer
COPY --from=terraform /bin/terraform /bin/terraform COPY --from=terraform /bin/terraform /bin/terraform
COPY --from=download /tmp/ovftool-installer /tmp/ovftool-installer COPY --from=download /tmp/ovftool-installer /tmp/ovftool-installer
COPY --from=download /tmp/yq /bin/yq COPY --from=download /tmp/yq /bin/yq
COPY --from=download /tmp/helm /usr/bin/helm
ENV LANG en_US.UTF-8 ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en ENV LANGUAGE en_US:en
@ -44,6 +49,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
locales \ locales \
make \ make \
netcat-openbsd \ netcat-openbsd \
# (npm) Dependency for Gitea Actions
npm \ npm \
openssh-client \ openssh-client \
powershell-lts \ powershell-lts \
@ -55,6 +61,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
qemu-utils \ qemu-utils \
# (sshpass) Dependency for Packer (non-interactive password authentication) # (sshpass) Dependency for Packer (non-interactive password authentication)
sshpass \ sshpass \
# (unzip) Dependency for Gitea Actions
unzip \
# (xorriso) Dependency for Packer (generating isofs image) # (xorriso) Dependency for Packer (generating isofs image)
xorriso \ xorriso \
yamllint && \ yamllint && \