We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ecb06f commit d492a27Copy full SHA for d492a27
1 file changed
.github/workflows/dockerpublish.yml
@@ -4,17 +4,20 @@ on:
4
tags:
5
- '*d'
6
workflow_dispatch:
7
+
8
+permissions:
9
+ contents: read
10
11
jobs:
12
build:
13
runs-on: ubuntu-latest
14
steps:
15
- uses: actions/checkout@v6
- - name: Publish to Registry
- env:
- DOCKER_USER: ${{secrets.DOCKER_USERNAME}}
- DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
16
- run: |
17
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
+ - name: Log in to Docker Hub
+ uses: docker/login-action@v4
18
+ with:
19
+ username: ${{ secrets.DOCKER_USERNAME }}
20
+ password: ${{ secrets.DOCKER_PASSWORD }}
21
- name: Build the Docker image
22
run: docker build -t wlanboy/javahttpclient:latest .
23
- name: Docker Push
0 commit comments