Update CI
This commit is contained in:
parent
1d3ea3452a
commit
ea3d5a6e25
@ -1,22 +0,0 @@
|
|||||||
version: 2
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
docker:
|
|
||||||
- image: golang:1.18-alpine
|
|
||||||
working_directory: /go/src/github.com/TicketsBot/GoPanel
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-pkg-cache
|
|
||||||
|
|
||||||
- run:
|
|
||||||
name: Install czlib & GCC
|
|
||||||
command: apk add zlib-dev gcc musl-dev
|
|
||||||
|
|
||||||
- run: go build cmd/panel/main.go
|
|
||||||
|
|
||||||
- store_artifacts:
|
|
||||||
path: /go/src/github.com/TicketsBot/GoPanel/main
|
|
15
.github/workflows/build-and-publish.yml
vendored
15
.github/workflows/build-and-publish.yml
vendored
@ -2,26 +2,13 @@ name: Build and Publish
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: panel
|
IMAGE_NAME: ${{ GITHUB_REPOSITORY_OWNER }}/api:${{ GITHUB_SHA }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: 1.19
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: go build -v ./...
|
|
||||||
|
|
||||||
publish-image:
|
publish-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user