1111 lint :
1212 # pull requests are a duplicate of a branch push if they are from within the
1313 # same repo. Skip these
14- if : github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
14+ if : false && github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
1515 runs-on : " ubuntu-latest"
1616 steps :
1717 - name : Checkout
2323 tox -e pre-commit,mypy
2424
2525 wheel :
26- if : github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
26+ if : false && github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
2727 strategy :
2828 fail-fast : false
2929 matrix :
5757 run : pipx run --python $(which python${{ matrix.python }}) --spec dist/*.whl ${GITHUB_REPOSITORY##*/} --version
5858
5959 test :
60- if : github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
60+ if : false && github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
6161 strategy :
6262 fail-fast : false
6363 matrix :
@@ -156,7 +156,7 @@ jobs:
156156 run : pipx run twine upload artifacts/dist/*
157157
158158 make-container :
159- needs : [lint, wheel, test]
159+ # needs: [lint, wheel, test]
160160 runs-on : ubuntu-latest
161161 permissions :
162162 contents : read
@@ -166,10 +166,10 @@ jobs:
166166 - name : Checkout
167167 uses : actions/checkout@v2
168168
169- - uses : actions/download-artifact@v3
170- with :
171- name : dist
172- path : dist
169+ # - uses: actions/download-artifact@v3
170+ # with:
171+ # name: dist
172+ # path: dist
173173
174174 - name : Cache Docker layers
175175 uses : actions/cache@v3
@@ -179,13 +179,13 @@ jobs:
179179 restore-keys : |
180180 ${{ runner.os }}-buildx-
181181
182- - name : Log in to GitHub Docker Registry
183- if : github.event_name != 'pull_request'
184- uses : docker/login-action@v2
185- with :
186- registry : ghcr.io
187- username : ${{ github.actor }}
188- password : ${{ secrets.GITHUB_TOKEN }}
182+ # - name: Log in to GitHub Docker Registry
183+ # if: github.event_name != 'pull_request'
184+ # uses: docker/login-action@v2
185+ # with:
186+ # registry: ghcr.io
187+ # username: ${{ github.actor }}
188+ # password: ${{ secrets.GITHUB_TOKEN }}
189189
190190 - name : Docker meta
191191 id : meta
@@ -206,9 +206,38 @@ jobs:
206206 with :
207207 file : .devcontainer/Dockerfile
208208 context : .
209- push : ${{ github.event_name != 'pull_request' }}
209+ # push: ${{ github.event_name != 'pull_request' }}
210210 build-args : BASE=python:3.10-slim
211211 tags : ${{ steps.meta.outputs.tags }}
212212 labels : ${{ steps.meta.outputs.labels }}
213213 cache-from : type=local,src=/tmp/.buildx-cache
214214 cache-to : type=local,dest=/tmp/.buildx-cache
215+ outputs : type=docker,dest=/tmp/image.tar
216+
217+ - name : show tags
218+ run : echo This is the tags generated by Docker meta
219+ echo ${{ steps.meta.outputs.tags }}
220+
221+ - name : Upload container image
222+ uses : actions/upload-artifact@v2
223+ with :
224+ name : image
225+ path : /tmp/image.tar
226+
227+ use-container :
228+ runs-on : ubuntu-latest
229+ needs : make-container
230+ steps :
231+ - name : Set up Docker Buildx
232+ uses : docker/setup-buildx-action@v1
233+
234+ - name : Download artifact
235+ uses : actions/download-artifact@v2
236+ with :
237+ name : image
238+ path : /tmp
239+
240+ - name : Load Docker image
241+ run : |
242+ docker load --input /tmp/image.tar
243+ docker image ls -a
0 commit comments