upda/.forgejo/workflows/build.yaml
Varakh b8ae0d22e7
All checks were successful
/ build (push) Successful in 4m57s
feat(pipeline): use custom executor image
2024-12-12 08:32:09 +01:00

36 lines
908 B
YAML

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
steps:
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '^1.22'
- name: Checkout
uses: actions/checkout@v3
- name: Test native build
run: |
npm install --global pnpm@^9
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 }}