Skip to content

docs: fixed wrong comment in vps-setup (#1) #28

docs: fixed wrong comment in vps-setup (#1)

docs: fixed wrong comment in vps-setup (#1) #28

Workflow file for this run

name: pipeline
on:
push:
branches:
- "main"
permissions:
packages: write
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: Install dependencies
run: go get .
- name: Test with the Go CLI
run: go test ./...
build-and-push-image:
runs-on: ubuntu-latest
needs:
- run-tests
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
ghcr.io/dreamsofcode-io/zenstats:latest
ghcr.io/dreamsofcode-io/zenstats:${{ github.sha }}
deploy:
runs-on: ubuntu-latest
needs:
- build-and-push-image
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: create env file
run: |
echo "GIT_COMMIT_HASH=${{ github.sha }}" >> ./envfile
- name: Docker Stack Deploy
uses: cssnr/stack-deploy-action@v1
with:
name: zenfulstats
file: docker-stack.yaml
host: zenful.site
user: deploy
ssh_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
env_file: ./envfile