Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add build envars to Dockerfiles and images #59

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

DerekRoberts
Copy link
Member

@DerekRoberts DerekRoberts commented Sep 6, 2024

This is the exciting part.

env:
  dockerfile: ${{ steps.vars.outputs.build_file }}
shell: bash
run: |
  # Add build envars to Dockerfile
  echo "ENV BUILDER_IMAGE=ghcr.io/${{ github.repository }}/${{ inputs.package }}:${{ inputs.tag }}" >> ${{ env.dockerfile }}
  echo "ENV BUILDER_PACKAGE=${{ inputs.package }}" >> ${{ env.dockerfile }}
  echo "ENV BUILDER_REPO=${{ github.repository }}" >> ${{ env.dockerfile }}
  echo "ENV BUILDER_TAG=${{ inputs.tag }}" >> ${{ env.dockerfile }}

Copy link
Contributor

@mishraomp mishraomp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , noyce

@DerekRoberts DerekRoberts merged commit 2a8648f into main Sep 6, 2024
3 checks passed
@DerekRoberts DerekRoberts deleted the feat/autoEnvars branch September 6, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants