Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload the vineyard-fluid-fuse image to github registry and docker hub when releasing. #1764

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading