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:
|
2024-12-13 19:46:48 +00:00
|
|
|
image: git.myservermanager.com/msm/executor-ubuntu-build-essential: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-12-21 14:02:24 +00:00
|
|
|
go-version: '^1.23'
|
2023-12-21 16:04:04 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Test native build
|
|
|
|
run: |
|
2024-12-10 20:01:37 +00:00
|
|
|
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 }}
|