Skip to content

Commit

Permalink
fix: COPY yq into final image for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Feb 26, 2024
1 parent ce8f889 commit 0fd06ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
earthly sat s blue-build
earthly sat s blue-build-tag
- name: Set up Python
uses: actions/setup-python@v5
Expand Down
3 changes: 2 additions & 1 deletion templates/Containerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ ARG CONFIG_DIRECTORY="/tmp/config"
ARG IMAGE_NAME="{{ recipe.name }}"
ARG BASE_IMAGE="{{ recipe.base_image }}"

COPY --from=gcr.io/projectsigstore/cosign /ko-app/cosign /usr/bin/cosign
COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
{%- include "modules/modules.j2" %}

COPY --from=gcr.io/projectsigstore/cosign /ko-app/cosign /usr/bin/cosign
COPY --from=ghcr.io/blue-build/cli:
{%- if let Some(tag) = recipe.blue_build_tag -%}
{{ tag }}
Expand Down
1 change: 0 additions & 1 deletion templates/modules/modules.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
RUN \
--mount=type=tmpfs,target=/tmp \
--mount=type=tmpfs,target=/var \
--mount=type=bind,from=docker.io/mikefarah/yq,src=/usr/bin/yq,dst=/usr/bin/yq \
--mount=type=bind,from=stage-config,src=/config,dst=/tmp/config,rw \
{%- if let Some(source) = module.source %}
--mount=type=bind,from={{ source }},src=/modules,dst=/tmp/modules,rw \
Expand Down

0 comments on commit 0fd06ca

Please sign in to comment.