Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Merge pull request #1 from LWJerri/master #4

Merge pull request #1 from LWJerri/master

Merge pull request #1 from LWJerri/master #4

Workflow file for this run

name: CI & CD
on:
push:
branches:
- "production"
jobs:
docker:
runs-on: self-hosted
steps:
- name: Set up QEMU
run: sudo apt-get update && sudo apt-get install -y qemu-user-static
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ${{ secrets.DOCKER_REGISTRY }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/lwjerri/findid:latest
- name: Start Deployment
run: |
cd /root/services/FindID
docker compose pull
docker compose up -d