Browse Source

Fix IMAGE_REPO in github image-publish action

Using the env 'GITHUB_REPOSITORY' instead of 'GITHUB_ACTOR' to get the right
image repo name i.e. `IMAGE_REPO` in Makefile.

Signed-off-by: llhuii <liulinghui@huawei.com>
tags/v0.4.0
llhuii 4 years ago
parent
commit
7b087e0d16
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      .github/workflows/image-publish.yaml

+ 3
- 2
.github/workflows/image-publish.yaml View File

@@ -25,8 +25,9 @@ jobs:

- name: Run push images
run: |
# ${GITHUB_ACTOR} => kubeedge
# ${GITHUB_REPOSITORY} => kubeedge/sedna
# ${GITHUB_REF} => refs/tags/v0.0.1
# IMAGE_REPO=kubeedge IMAGE_TAG=v0.0.1
# see https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
make push-all IMAGE_REPO=${GITHUB_ACTOR} IMAGE_TAG=${GITHUB_REF#refs/*/}
make push-all IMAGE_REPO=${GITHUB_REPOSITORY%/*} IMAGE_TAG=${GITHUB_REF#refs/*/}
working-directory: ./src/github.com/${{ github.repository }}

Loading…
Cancel
Save