Skip to content

Commit e118ea1

Browse files
authored
Add Docker Hub credentials to GitHub Actions workflow (#142)
* Add Docker Hub credentials to GitHub Actions workflow * Rename CI workflows for clarity: update 'CI' to 'CI-PR' in pr.yml and 'CI' to 'CI-Push' in push.yml
1 parent d16a8a7 commit e118ea1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/pr.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
#
15-
name: CI
15+
name: CI-PR
1616

1717
on:
1818
pull_request_target:
@@ -41,6 +41,9 @@ jobs:
4141
runs-on: [ self-hosted, Linux ]
4242
container:
4343
image: python:3.9.18
44+
credentials:
45+
username: ${{ secrets.DOCKERHUB_USERNAME }}
46+
password: ${{ secrets.DOCKERHUB_TOKEN_PUBLIC }}
4447

4548
steps:
4649
- uses: actions/checkout@v3

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
#
15-
name: CI
15+
name: CI-Push
1616

1717
on: push
1818

0 commit comments

Comments
 (0)