update
This commit is contained in:
@@ -9,23 +9,28 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
ko:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
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:
|
with:
|
||||||
version: v0.17.1
|
version: v0.17.1
|
||||||
- name: Build
|
- name: Build and push
|
||||||
env:
|
env:
|
||||||
KO_DOCKER_REPO: git.yoshino-s.xyz/${{ gitea.repository }}
|
KO_DOCKER_REPO: git.yoshino-s.xyz/${{ gitea.repository }}/activate-server
|
||||||
run: |
|
run: |
|
||||||
cd activate
|
cd activate
|
||||||
ko build --bare --sbom spdx --tags latest ./cmd/server
|
ko build --bare --sbom spdx --tags latest ./cmd/server
|
||||||
Reference in New Issue
Block a user