Add Docker support with build and push workflow, and configure Gunicorn for application serving
All checks were successful
Build and push Docker image / build (push) Successful in 2m14s
All checks were successful
Build and push Docker image / build (push) Successful in 2m14s
This commit is contained in:
parent
3d180d3359
commit
fd09bf8aa3
6 changed files with 67 additions and 0 deletions
29
.forgejo/workflows/docker.yaml
Normal file
29
.forgejo/workflows/docker.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Build and push Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: code.edgarpierre.fr
|
||||
username: ${{ vars.DOCKER_PUSH_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PUSH_PASSWORD }}
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: |
|
||||
code.edgarpierre.fr/${{ github.repository }}:${{ github.ref_name }}
|
||||
code.edgarpierre.fr/${{ github.repository }}:latest
|
Loading…
Add table
Add a link
Reference in a new issue