mirror of
https://github.com/urbit/vere.git
synced 2024-08-15 23:00:47 +03:00
build: upload soon and edge tags to dockerhub (#258)
Resolves #160 Adds a job which will push a tag with the pace value to DockerHub. Technically also adds a `live` tag which references the same image as the `latest` tag.
This commit is contained in:
commit
2f5a8bbbe0
5
.github/workflows/shared.yml
vendored
5
.github/workflows/shared.yml
vendored
@ -200,6 +200,11 @@ jobs:
|
||||
run: |
|
||||
bazel run //docker:push_version_x86_64
|
||||
|
||||
- name: Build and push pace-tagged Docker image
|
||||
if: ${{ inputs.docker && matrix.target == 'linux-x86_64' }}
|
||||
run: |
|
||||
bazel run //docker:push_pace_x86_64
|
||||
|
||||
- name: Build and push latest-tagged Docker image
|
||||
if: ${{ inputs.docker && matrix.target == 'linux-x86_64' && inputs.pace == 'live' }}
|
||||
run: |
|
||||
|
@ -75,6 +75,16 @@ genrule(
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "pace_tag",
|
||||
srcs = ["PACE"],
|
||||
outs = ["docker_pace_tag"],
|
||||
cmd = """
|
||||
tr -d '\n' < $< > $@
|
||||
""",
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
container_push(
|
||||
name = "push_latest_x86_64",
|
||||
format = "Docker",
|
||||
@ -94,3 +104,13 @@ container_push(
|
||||
tag_file = ":version_tag",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
container_push(
|
||||
name = "push_pace_x86_64",
|
||||
format = "Docker",
|
||||
image = ":image_x86_64",
|
||||
registry = "docker.io",
|
||||
repository = _docker_repository,
|
||||
tag = ":pace_tag",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user