Skip to content

Commit

Permalink
hack hack hack
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcb committed Dec 21, 2022
1 parent e1ae480 commit 28242f3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/reusable-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
if: inputs.BINARY == 'docker'
- name: remove Docker
run: ${{inputs.SUDO}} apt-get purge docker-engine docker docker.io docker-ce docker-ce-cli ; ${{inputs.SUDO}} rm -rf /usr/bin/docker
if: inputs.binary == 'podman'
if: inputs.binary != 'docker'
- name: Install Podman (with apt-get)
run: ${{inputs.SUDO}} apt-get update && ${{inputs.SUDO}} apt-get install -y podman
if: inputs.binary == 'podman'
Expand All @@ -84,7 +84,16 @@ jobs:
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) ${{inputs.BUILD_EARTHLY_ARGS}} ${{inputs.BUILD_EARTHLY_TARGET}}
- name: list images
run: ${{inputs.BINARY}} images
run: ${{inputs.BINARY}} images && echo now with sudo && ${{inputs.SUDO}} ${{inputs.BINARY}} images
- name: make sure image exists
run: ${{inputs.SUDO}} ${{inputs.BINARY}} run --privileged docker.io/earthly/buildkitd:dev-HEAD /bin/sh -c 'ls -la /'

# TODO once podman is actually outputing images, this part will be removed; however since the bug exists in the currently
# released version, this work-around is required until it's been fixed AND released.
#- name: Podman work-around-hack
# run: ${{inputs.SUDO}} ${{inputs.BINARY}} pull docker.io/earthly/buildkitd:v0.6.30 && echo 111111111 && ${{inputs.SUDO}} ${{inputs.BINARY}} tag docker.io/earthly/buildkitd:v0.6.30 docker.io/earthly/buildkitd:dev-HEAD && echo 222222222 && ${{inputs.SUDO}} ${{inputs.BINARY}} tag docker.io/earthly/buildkitd:v0.6.30 docker.io/earthly/buildkitd:dev-HEAD && echo 333333333 && ${{inputs.SUDO}} ${{inputs.BINARY}} images
# if: inputs.binary == 'podman'

- name: rebuild earthly using latest earthly build
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} ${{inputs.BUILD_EARTHLY_ARGS}} ${{inputs.BUILD_EARTHLY_TARGET}}
- name: Set EARTHLY_VERSION_FLAG_OVERRIDES env
Expand Down

0 comments on commit 28242f3

Please sign in to comment.