Skip to content

Commit 2139727

Browse files
flutter docker
1 parent 6251c39 commit 2139727

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ on:
99
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
1010
env:
1111
REGISTRY: ghcr.io
12+
REPO_NAME: ${{ github.repository }}
1213
IMAGE_NAME: ${{ github.repository }}-flutter
1314

15+
1416
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
1517
jobs:
1618
build-and-push-image:
@@ -37,7 +39,7 @@ jobs:
3739
id: meta
3840
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
3941
with:
40-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42+
images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}
4143
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
4244
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
4345
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.

0 commit comments

Comments
 (0)