upda/.forgejo/workflows/build.yaml

37 lines
908 B
YAML
Raw Normal View History

2023-12-21 16:04:04 +00:00
on:
pull_request:
types: [ opened, synchronize, reopened ]
push:
branches:
- master
env:
IMAGE_TAG: varakh/upda
jobs:
build:
runs-on: docker
container:
image: git.myservermanager.com/msm/forgejo-base-executor-image-make-cgo:latest
2023-12-21 16:04:04 +00:00
steps:
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Go
uses: actions/setup-go@v4
with:
2024-09-07 14:04:54 +00:00
go-version: '^1.22'
2023-12-21 16:04:04 +00:00
- name: Checkout
uses: actions/checkout@v3
- name: Test native build
run: |
npm install --global pnpm@^9
2023-12-21 16:04:04 +00:00
make ci
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Test docker image build
uses: docker/build-push-action@v4
with:
push: false
tags: |
${{ env.IMAGE_TAG }}:${{ github.sha }}