-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 909 Bytes
/
test.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
name: Deploy server over CI/CD
on: workflow_dispatch
permissions:
contents: read
jobs:
build:
name: Build, push, pull & up
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Replace API Key
env:
API: ${{ secrets.API_KEY }}
run: sed -i -e "s/secret.API_KEY/$API/" assets/js/main.js
- name: Login to registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/stats-test-realt:${{ github.ref_name }}