Skip to content

Commit

Permalink
feat: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Apr 10, 2024
1 parent 7f1d263 commit 384c177
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ci

on:
push:
branches:
- "main"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
target: backend
tags: betagouv/compte-rendu-vif-backend:latest

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
target: frontend
tags: betagouv/compte-rendu-vif-frontend:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
################################
# BASE IMAGE FOR EVERY SERVICE #
################################
FROM --platform=linux/amd64 node:18 AS with-pnpm
FROM --platform=linux/amd64 node:20-alpine AS with-pnpm
RUN npm i -g pnpm

################################
Expand Down

0 comments on commit 384c177

Please sign in to comment.