Skip to content

remove the unecessary restart #9

remove the unecessary restart

remove the unecessary restart #9

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 }}