We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aef7c4 commit 2273692Copy full SHA for 2273692
.github/workflows/deploy.yml
@@ -9,6 +9,10 @@ on:
9
jobs:
10
build-and-deploy:
11
runs-on: ubuntu-latest
12
+ env:
13
+ DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
14
+ DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
15
+
16
steps:
17
- name: Checkout
18
uses: actions/checkout@v4
@@ -22,5 +26,10 @@ jobs:
22
26
BUILD_NUMBER=$(date +'%d%m%Y%H%M%S')
23
27
echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV
24
28
echo "Generated Build Number: $BUILD_NUMBER"
29
+ - name: Login to Docker Hub
30
+ uses: docker/login-action@v3
31
+ with:
32
+ username: ${{ env.DOCKER_USERNAME }}
33
+ password: ${{ env.DOCKER_PASSWORD }}
25
34
- name: Maven Clean Verify
35
run: mvn -B -ntp clean verify jib:build -Ddocker.image.tag=$BUILD_NUMBER
0 commit comments