Skip to content

Commit

Permalink
Upload the vineyard-fluid-fuse image to github registry and docker hu…
Browse files Browse the repository at this point in the history
…b when releasing. (#1764)

Signed-off-by: Ye Cao <[email protected]>
  • Loading branch information
dashanji authored Feb 22, 2024
1 parent 3e1bd21 commit 9a15b37
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/vineyard-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
if: ${{ matrix.job == 'release' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'v6d-io/v6d' }}
uses: docker/setup-buildx-action@v2

- name: Upload latest docker image
- name: Upload latest docker image of vineyard-operator
if: ${{ matrix.job == 'release' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'v6d-io/v6d' }}
run: |
# pre-publish to ghcr.io to avoid the "no basic auth credentials" error
Expand All @@ -157,6 +157,15 @@ jobs:
export IMG=ghcr.io/v6d-io/v6d/vineyard-operator:latest
make -C k8s docker-build-push-multi-arch REGISTRY=${{ env.REGISTRY }} VERSION=latest
- name: Upload latest docker image of vineyard-fluid-fuse
if: ${{ matrix.job == 'release' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'v6d-io/v6d' }}
run: |
make -C docker vineyard-fluid-fuse
docker tag ghcr.io/v6d-io/v6d/vineyard-fluid-fuse:latest \
ghcr.io/v6d-io/v6d/vineyard-fluid-fuse:${{ steps.tag.outputs.TAG }}
docker push ghcr.io/v6d-io/v6d/vineyard-fluid-fuse:${{ steps.tag.outputs.TAG }}
docker push ghcr.io/v6d-io/v6d/vineyard-fluid-fuse:latest
- name: Generate the python and vineyardd image for tests
run: |
make -C k8s/test/e2e build-base-images
Expand Down
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PYTHON_DEV_REGISTRY := $(REGISTRY)
PYTHON_DEV_IMAGE := vineyard-python-dev
PYTHON_DEV_TAG := latest_$(PLATFORM)

VINEYARD_FLUID_FUSE_REGISTRY := $(RELEASE_REGISTRY)
VINEYARD_FLUID_FUSE_REGISTRY := $(REGISTRY)
VINEYARD_FLUID_FUSE_IMAGE := vineyard-fluid-fuse
VINEYARD_FLUID_FUSE_TAG := latest

Expand Down
6 changes: 6 additions & 0 deletions misc/release-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ for tag in ${version} latest; do
regctl image copy -v info ghcr.io/v6d-io/v6d/vineyard-operator:${version} \
vineyardcloudnative/vineyard-operator:${tag}
done

# vineyard-fluid-fuse
for tag in ${version} latest; do
regctl image copy -v info ghcr.io/v6d-io/v6d/vineyard-fluid-fuse:${version} \
vineyardcloudnative/vineyard-fluid-fuse:${tag}
done

0 comments on commit 9a15b37

Please sign in to comment.