Skip to content

Commit 2684b99

Browse files
committed
Reapply "export Images after puppet installation"
This reverts commit d8bb773.
1 parent d8bb773 commit 2684b99

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: .github/workflows/build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
cache-version: ${{ inputs.cache-version }}
4949
working-directory: ${{ inputs.working-directory }}
5050
- name: Run beaker
51-
run: bundle exec beaker --provision --preserve-hosts always --hosts ${{ matrix.env.BEAKER_SETFILE }}{tag=${{ github.repository }}} --log-level debug --helper install_puppet.rb
51+
run: bundle exec beaker --provision --hosts ${{ matrix.env.BEAKER_SETFILE }} --log-level debug --helper install_puppet.rb
5252
env: ${{ matrix.env }}
5353
- name: List images
5454
run: docker images
@@ -60,8 +60,10 @@ jobs:
6060
registry: ghcr.io
6161
username: ${{ github.actor }}
6262
password: ${{ secrets.GITHUB_TOKEN }}
63-
- name: Add tag to image
64-
run: docker image tag ${{ github.repository }}:latest ghcr.io/${{ github.repository_owner }}/${{ matrix.env.BEAKER_SETFILE }}-${{ matrix.env.BEAKER_PUPPET_COLLECTION }}:latest
63+
- name: Export container name
64+
run: docker container ls --last 1 --format json | jq --raw-output .Names > container_name
65+
- name: commit Container
66+
run: docker commit "$(cat container_name)" ghcr.io/${{ github.repository_owner }}/${{ matrix.env.BEAKER_SETFILE }}-${{ matrix.env.BEAKER_PUPPET_COLLECTION }}:latest
6567
- name: Extract metadata (tags, labels) for Docker
6668
id: meta
6769
uses: docker/metadata-action@v5

0 commit comments

Comments
 (0)