-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (38 loc) · 1.02 KB
/
push-container-dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on:
push:
branches-ignore:
- main
jobs:
release:
name: release
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
# Checkout code
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Fetch tags
- run: git fetch --force --tags
# Set version environment
- name: Set VERSION
run: |
echo "YBFEED_VERSION=`git describe --tags`" >> $GITHUB_ENV
# Build web ui
- name: Use Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: 22.x
- run: corepack enable
working-directory: ./web/ui
- run: yarn
working-directory: ./web/ui
- run: yarn build
working-directory: ./web/ui
# Build docker image
- uses: ko-build/[email protected]
- run: GOFLAGS="-ldflags=-X=main.version=$YBFEED_VERSION" ko build -B --platform all --tags dev --sbom none ./cmd/ybfeed
env:
KO_DOCKER_REPO: ghcr.io/ybizeul