Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
test self-runner
  • Loading branch information
Kurtisone authored Mar 27, 2024
1 parent b9534e8 commit 3a5ceac
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}

0 comments on commit 3a5ceac

Please sign in to comment.