mirror of
https://github.com/JuLi0n21/shit-cache.git
synced 2026-06-05 03:26:29 +00:00
readme and workflow
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
name: Build Backend
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- ".github/workflows/shit-proxy.yml"
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-backend:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: "true"
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.26.2"
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
CGO_ENABLED=0 go build -ldflags="-w -s" -o shit-proxy
|
||||
|
||||
- name: Log in to Docker registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: https://docker.illegalesachen.download
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
file: Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
docker.illegalesachen.download/shit-proxy:${{ github.sha }}
|
||||
docker.illegalesachen.download/shit-proxy:latest
|
||||
Reference in New Issue
Block a user