File tree 1 file changed +15
-5
lines changed
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,15 @@ jobs:
54
54
55
55
- name : Login to Registry 🔐
56
56
if : env.PUSH_TO_REGISTRY == 'true'
57
- uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
58
- with :
59
- registry : quay.io
60
- username : ${{ secrets.REGISTRY_USERNAME }}
61
- password : ${{ secrets.REGISTRY_TOKEN }}
57
+ run : |
58
+ docker login ${{ env.REGISTRY }} \
59
+ --username ${{ secrets.REGISTRY_USERNAME }} \
60
+ --password ${{ secrets.REGISTRY_TOKEN }} || \
61
+ docker login ${{ env.REGISTRY }} \
62
+ --username ${{ secrets.REGISTRY_USERNAME }} \
63
+ --password ${{ secrets.REGISTRY_TOKEN }}
64
+ shell : bash
65
+ id : login
62
66
63
67
- name : Push single platform images to Registry 📤
64
68
if : env.PUSH_TO_REGISTRY == 'true'
74
78
--variant ${{ inputs.variant }} \
75
79
--tags-dir /tmp/jupyter/tags/
76
80
shell : bash
81
+
82
+ - name : Logout from Registry 🔐
83
+ if : always() && env.PUSH_TO_REGISTRY == 'true' && steps.login.outcome == 'success'
84
+ run : |
85
+ docker logout ${{ env.REGISTRY }}
86
+ shell : bash
You can’t perform that action at this time.
0 commit comments