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

WIP: switch from rules_docker to rules_oci #163

Merged
merged 11 commits into from
Jul 13, 2023
Merged

Conversation

therjak
Copy link
Contributor

@therjak therjak commented Jun 19, 2023

No description provided.

@@ -69,7 +69,6 @@ def push_all(name, images = {}, **kwargs):
push_targets.append(push_target)
container_push(
name = push_target,
format = "Docker",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to change line 23 and replace --dst wth --repository and --tag

deploy.sh Outdated
@@ -118,7 +118,7 @@ function terraform_init {
fi

local ROBOT_IMAGE_DIGEST
ROBOT_IMAGE_DIGEST=$(cat bazel-bin/src/go/cmd/setup-robot/setup-robot.push.digest)
ROBOT_IMAGE_DIGEST=$(cat bazel-bin/setup-robot.digest)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to change line 86 and replace --dst with --repository and --tag. Same for .github/ci/common.sh:99

@ensonic
Copy link
Contributor

ensonic commented Jul 12, 2023

I've got this error: https://gist.github.com/ensonic/9560e2a058ff30fa0cdfed36304938e3
Looks like it is still using the rules-docker for the setup-robot container?

@ensonic
Copy link
Contributor

ensonic commented Jul 12, 2023

If it is hard to fix we can use bazel run src/go/cmd/setup-robot:setup-robot.push -- instead of invoking the two push scripts in deploy.sh

@ensonic
Copy link
Contributor

ensonic commented Jul 13, 2023

This is work now for me. I also did a 2nd run after bazel clean --expunge.

@therjak therjak merged commit 238e8b5 into main Jul 13, 2023
4 checks passed
@therjak therjak deleted the cschiemann/oci-image branch July 13, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants