We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed37506 commit eedc982Copy full SHA for eedc982
.github/workflows/docker-image.yml
@@ -13,6 +13,17 @@ jobs:
13
runs-on: ubuntu-latest
14
15
steps:
16
- - uses: actions/checkout@v3
17
- - name: Build the Docker image
18
- run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
+ - name: Checkout code
+ uses: actions/checkout@v3
+ with:
19
+ fetch-depth: 0
20
+ - name: Docker login
21
+ env:
22
+ DOCKER_USER: ${{ secrets.DOCKER_USER }}
23
+ DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
24
+ run: |
25
+ echo "Starting login..."
26
+ docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
27
+ echo "Login ended"
28
+ # - name: Build the Docker image
29
+ # run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
0 commit comments