Skip to content

Commit

Permalink
Merge branch 'main' of github.com:datagora-erasme/maquette_back
Browse files Browse the repository at this point in the history
  • Loading branch information
SofianeHamlaoui committed Nov 15, 2023
2 parents a7d3a07 + d18c0c5 commit 99492b6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Push Docker Images

on:
workflow_dispatch:

push:
branches:
- 'main'
- 'docker-ci'

jobs:
backend:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
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
context: .
# based on branch push tag latest for main and dev for dev
tags: erasme/maquette_augmentee_backend:${{ github.ref == 'refs/heads/main' && 'latest' || 'dev' }}

0 comments on commit 99492b6

Please sign in to comment.