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 23a06a5 commit 9fece9aCopy full SHA for 9fece9a
.github/workflows/docker-image.yml
@@ -8,22 +8,21 @@ on:
8
9
jobs:
10
11
- login:
+ build:
12
+
13
runs-on: ubuntu-latest
14
15
steps:
16
- name: Login to Docker Hub
17
uses: docker/login-action@v3
18
with:
19
username: ${{ secrets.DOCKER_USER }}
20
password: ${{ secrets.DOCKER_PASSWORD }}
21
- build:
-
22
- runs-on: ubuntu-latest
+ - name: Build and push
23
+ uses: docker/build-push-action@v6
24
+ with:
25
+ push: true
26
+ tags: fastapi-redis-tut:$GITHUB_SHA
27
- steps:
- - uses: actions/checkout@v4
- - name: Build the Docker image
- run: docker build . --file Dockerfile --tag fastapi-redis-tut:$(date +%s) &&
28
- // docker push fastapi-redis-tut:$(date +%s)
29
0 commit comments