Skip to content

Commit

Permalink
fix: fix dynamic devcontainer image name in build-devcontainer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lgersman committed Oct 10, 2024
1 parent 9496532 commit 5ab36f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:

# name of the pushed image ("ghcr.io/wordpress-ionos/wordpress-ionos-devcontainer")
# we use variables here to make it more dynamic and reusable in forks
imageName: ghcr.io/${{ lowercase(github.repository) }}-devcontainer
# devnote :
# workflow variable github.repository can be accessed as shell variable GITHUB_REPOSITORY.
# the to lowercase conversion can be done using bash inline substitution by appending @L to the variable name
imageName: "ghcr.io/${GITHUB_REPOSITORY@L}-devcontainer"

# enable caching (will build the image only if related files where changed)
# cacheFrom: ghcr.io/ionos-wordpress/ionos-wordpress-devcontainer
Expand Down

0 comments on commit 5ab36f3

Please sign in to comment.