Skip to content

Commit

Permalink
feat(ci): push sur le tag latest
Browse files Browse the repository at this point in the history
  • Loading branch information
bachrc committed Oct 16, 2024
1 parent 857d5ae commit c3fe68c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

Un utilitaire prévu pour l'exercice du café.

Le logiciel prend la forme d'une application web statique, faisant
des requêtes sur un Pocketbase.
Le logiciel prend la forme d'une application web, faisant
des requêtes sur un backend Pocketbase.

La manière la plus simple de démarrer le développement est d'utiliser
le Dev Container fourni.

## Déploiement

La manière la plus simple de déployer l'application est d'utiliser
Docker Compose, et d'utiliser les images de release.
16 changes: 16 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
web:
image: ghcr.io/bachrc/de-l-arbre-aux-wc-app:latest
container_name: arbre-wc-web
ports:
- 80:80
environment:
PUBLIC_POCKETBASE_URL: db:8080

db:
image: ghcr.io/bachrc/de-l-arbre-aux-wc-database:latest
container_name: arbre-wc-database
ports:
- 8080:8080
volumes:
- ./pb_data:/home/deno/.local/pb/pb_data

0 comments on commit c3fe68c

Please sign in to comment.