-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.12 KB
/
live.yml
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
name: LIVE - Tag and Deploy
on:
pull_request:
branches:
- development
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Github Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Tag latest
run: |
docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/metrics-service:latest-stage
docker tag ${{ secrets.DOCKER_HUB_USERNAME }}/metrics-service:latest-stage ${{ secrets.DOCKER_HUB_USERNAME }}/metrics-service:latest
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/metrics-service:latest
- name: Deploy
uses: ./.github/actions/deploy
with:
environment: live
nomad-cacert: operations/admin-ui-ca.crt
nomad-token: ${{ secrets.NOMAD_TOKEN_METRICS_SERVICE_DEPLOY }}
nomad-addr: ${{ secrets.NOMAD_DEPLOY_ADDR }}