Skip to content

Commit 22741ec

Browse files
authored
Merge pull request #229 from pre-commit-ci/remove-short-circuit
remove short circuit and always push a new image
2 parents 2e62402 + 908289d commit 22741ec

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

bin/push

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ def _push(
4242
subprocess.check_call(('docker', 'push', target))
4343

4444

45-
def _inspect(tag: str) -> bytes:
46-
cmd = ('docker', 'image', 'inspect', tag, '--format', '{{.Id}}')
47-
return subprocess.check_output(cmd)
48-
49-
5045
def main() -> int:
5146
parser = argparse.ArgumentParser()
5247
parser.add_argument('git_dir')
@@ -56,12 +51,6 @@ def main() -> int:
5651
minimal_tag = args.tag
5752
full_tag = f'{args.tag}-full'
5853

59-
push = _inspect(full_tag)
60-
target = _inspect('ghcr.io/pre-commit-ci/runner-image:latest-full')
61-
if push == target:
62-
print('skipping push (up to date)')
63-
return 0
64-
6554
aws_password_cmd = ('aws', 'ecr-public', 'get-login-password')
6655
ecr_password = subprocess.check_output(aws_password_cmd).strip().decode()
6756

0 commit comments

Comments
 (0)