File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments