File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 48
48
cache-version : ${{ inputs.cache-version }}
49
49
working-directory : ${{ inputs.working-directory }}
50
50
- 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
52
52
env : ${{ matrix.env }}
53
53
- name : List images
54
54
run : docker images
60
60
registry : ghcr.io
61
61
username : ${{ github.actor }}
62
62
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
65
- - name : Extract metadata (tags, labels) for Docker
63
+ - name : Export container name
64
+ run : name=$(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
67
+ # - name: Add tag to image
68
+ # run: docker image tag ${{ github.repository }}:latest ghcr.io/${{ github.repository_owner }}/${{ matrix.env.BEAKER_SETFILE }}-${{ matrix.env.BEAKER_PUPPET_COLLECTION }}:latest
69
+ - name : Extract metadata (tags, labels) for Docker
66
70
id : meta
67
71
uses : docker/metadata-action@v5
68
72
with :
You can’t perform that action at this time.
0 commit comments