Skip to content

Commit

Permalink
ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
a32fred committed Jul 13, 2024
1 parent 88fa4ad commit 62c66ca
Showing 1 changed file with 28 additions and 41 deletions.
69 changes: 28 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,32 @@ on:
jobs:
build:
runs-on: ubuntu-latest

services:
docker:
image: docker:19.03.12
options: --privileged


steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: zurtrah/notification-webpush:latest

deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker
uses: docker/setup-buildx-action@v1

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: ./frontend
file: ./frontend/Dockerfile
push: true
tags: zurtrah/notification-webpush-frontend:latest

- name: Build and push backend Docker images
uses: docker/build-push-action@v2
with:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: zurtrah/notification-webpush-backend:latest

0 comments on commit 62c66ca

Please sign in to comment.