Skip to content

Commit 7627bd2

Browse files
committed
Fixing login issues for pushing Docker image
1 parent d8d8256 commit 7627bd2

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.github/workflows/docker-stable.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ jobs:
2121
fi
2222
echo "Version ${{ inputs.version }} found on PyPI - proceeding with release"
2323
24-
- name: Login to Docker Hub
25-
uses: docker/login-action@v3
26-
with:
27-
username: ${{ secrets.DOCKERHUB_USERNAME }}
28-
password: ${{ secrets.DOCKERHUB_TOKEN }}
29-
3024
- name: Set up QEMU
3125
uses: docker/setup-qemu-action@v3
3226

3327
- name: Set up Docker Buildx
3428
uses: docker/setup-buildx-action@v3
3529

30+
- name: Login to Docker Hub with Organization Token
31+
uses: docker/login-action@v3
32+
with:
33+
username: ${{ secrets.DOCKERHUB_USERNAME }}
34+
password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
3636
- name: Build & Push Stable Docker
3737
uses: docker/build-push-action@v5
3838
with:

.github/workflows/pr-preview.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,19 @@ jobs:
119119
echo "success=false" >> $GITHUB_OUTPUT
120120
exit 1
121121
122-
- name: Login to Docker Hub
123-
if: steps.verify_package.outputs.success == 'true'
124-
uses: docker/login-action@v3
125-
with:
126-
username: ${{ secrets.DOCKERHUB_USERNAME }}
127-
password: ${{ secrets.DOCKERHUB_TOKEN }}
128-
129122
- name: Set up QEMU
130123
uses: docker/setup-qemu-action@v3
131124

132125
- name: Set up Docker Buildx
133126
uses: docker/setup-buildx-action@v3
134127

128+
- name: Login to Docker Hub with Organization Token
129+
if: steps.verify_package.outputs.success == 'true'
130+
uses: docker/login-action@v3
131+
with:
132+
username: ${{ secrets.DOCKERHUB_USERNAME }}
133+
password: ${{ secrets.DOCKERHUB_TOKEN }}
134+
135135
- name: Build & Push Docker Preview
136136
if: steps.verify_package.outputs.success == 'true'
137137
uses: docker/build-push-action@v5

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ jobs:
6868
if: steps.version_check.outputs.pypi_exists != 'true'
6969
uses: pypa/gh-action-pypi-publish@v1.12.4
7070

71-
- name: Login to Docker Hub
72-
uses: docker/login-action@v3
73-
with:
74-
username: ${{ secrets.DOCKERHUB_USERNAME }}
75-
password: ${{ secrets.DOCKERHUB_TOKEN }}
76-
7771
- name: Set up QEMU
7872
uses: docker/setup-qemu-action@v3
7973

8074
- name: Set up Docker Buildx
8175
uses: docker/setup-buildx-action@v3
8276

77+
- name: Login to Docker Hub with Organization Token
78+
uses: docker/login-action@v3
79+
with:
80+
username: ${{ secrets.DOCKERHUB_USERNAME }}
81+
password: ${{ secrets.DOCKERHUB_TOKEN }}
82+
8383
- name: Verify package is installable
8484
id: verify_package
8585
env:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.1.38"
9+
version = "2.1.39"
1010
requires-python = ">= 3.10"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

socketsecurity/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.1.38'
2+
__version__ = '2.1.39'

0 commit comments

Comments
 (0)