update
This commit is contained in:
@@ -9,23 +9,28 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
ko:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: stable
|
||||
- uses: ko-build/setup-ko@v0.8
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.yoshino-s.xyz
|
||||
username: ${{ gitea.repository_owner }}
|
||||
password: ${{ secrets.PACKAGES_PASSWORD }}
|
||||
- name: Install ko
|
||||
uses: ko-build/setup-ko@v0.8
|
||||
with:
|
||||
version: v0.17.1
|
||||
- name: Build
|
||||
- name: Build and push
|
||||
env:
|
||||
KO_DOCKER_REPO: git.yoshino-s.xyz/${{ gitea.repository }}
|
||||
KO_DOCKER_REPO: git.yoshino-s.xyz/${{ gitea.repository }}/activate-server
|
||||
run: |
|
||||
cd activate
|
||||
ko build --bare --sbom spdx --tags latest ./cmd/server
|
||||
Reference in New Issue
Block a user