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 287a471 commit 71fe139Copy full SHA for 71fe139
.github/workflows/push-docker-image.yml
@@ -39,9 +39,14 @@ jobs:
39
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
40
with:
41
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42
+
43
+ # Build Docker Image
44
+ - name: Build Docker Image
45
+ run: |
46
+ docker build -t awesome-fastapi:${{ github.sha }} .
47
+ docker run -d -p 8080:8080 awesome-fastapi:${{ github.sha }}
48
49
# Push the Docker image to the registry
- # https://github.com/docker/build-push-action
50
- name: Push Docker Image to GHCR
51
run: |
52
docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
0 commit comments