-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (43 loc) · 1.32 KB
/
Copy pathdev_deploy.yml
File metadata and controls
50 lines (43 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Development Deploy
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to deploy"
required: true
type: string
default: "development"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6.0.3
with:
ref: ${{ github.event.inputs.branch }}
- name: Log in to Docker Hub
uses: docker/login-action@v4.2.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Client Docker Image
uses: docker/build-push-action@v7.2.0
with:
context: ./client
file: ./client/client.Dockerfile
push: true
tags: |
7cav/apps_beta_client:${{ github.sha }}
7cav/apps_beta_client:latest
- name: Build and Push Server Docker Image
uses: docker/build-push-action@v7.2.0
with:
context: ./server
file: ./server/server.Dockerfile
push: true
tags: |
7cav/apps_beta_server:${{ github.sha }}
7cav/apps_beta_server:latest
- name: Force Watchtower Update
run: |
curl -H "Authorization: Bearer ${{ secrets.WATCHER_KEY }}" https://watcher.7cav.us/v1/update