Skip to content

Commit

Permalink
Cant use the github or inputs contexts in env
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgen committed Jan 6, 2024
1 parent 61b950e commit 98c8a84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/docker-build-action/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: 'Docker Build and Push'
description: 'Builds and pushes Docker images to GitHub Container Registry'

env:
FULL_IMAGE_NAME: "ghcr.io/${{ github.repository_owner }}/${{ inputs.imageName }}"

inputs:
imageName:
description: 'Name of the image to build and push'
Expand All @@ -24,6 +21,10 @@ outputs:
runs:
using: 'composite'
steps:
- name: Set up environment variables
shell: bash
run: echo "FULL_IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/${{ inputs.imageName }}" >> $GITHUB_ENV

- name: Checkout code
uses: actions/checkout@v2

Expand Down

0 comments on commit 98c8a84

Please sign in to comment.