Skip to content

Commit bb51ef7

Browse files
committed
feat(action): run on Github without Docker
1 parent ffd6024 commit bb51ef7

File tree

3 files changed

+55
-35
lines changed

3 files changed

+55
-35
lines changed

.github/workflows/build-action.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build Action
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- action/**
8+
- action.yml
9+
branches:
10+
- main
11+
- gha
12+
13+
jobs:
14+
build:
15+
runs-on: node-22
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
id: pnpm-install
22+
with:
23+
version: 9.12.3
24+
run_install: true
25+
- name: Build Action
26+
working-directory: ./action
27+
run: pnpm build
28+
- uses: EndBug/add-and-commit@v9
29+
with:
30+
add: "build"
31+
message: "fix(action): build"
32+
# docker:
33+
# runs-on: ubuntu-latest
34+
# steps:
35+
# - name: Checkout
36+
# uses: actions/checkout@v4
37+
# - name: Login to Docker Hub
38+
# uses: docker/login-action@v3
39+
# with:
40+
# username: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}
41+
# password: ${{ secrets.DOCKERHUB_LINGODOTDEV_PASSWORD }}
42+
# - name: Set up QEMU
43+
# uses: docker/setup-qemu-action@v3
44+
# - name: Set up Docker Buildx
45+
# uses: docker/setup-buildx-action@v3
46+
# - name: Build Docker image and push
47+
# uses: docker/build-push-action@v6
48+
# with:
49+
# push: true
50+
# platforms: linux/amd64
51+
# context: ./action
52+
# file: ./action/Dockerfile
53+
# tags: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:latest

.github/workflows/docker.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ branding:
77
color: "black"
88

99
runs:
10-
using: "docker"
11-
image: "action/Dockerfile"
10+
using: "node-22"
11+
image: "action/build/index.js"
1212
env:
1313
LINGODOTDEV_API_KEY: ${{ inputs.api-key }}
1414
LINGODOTDEV_PULL_REQUEST: ${{ inputs.pull-request }}

0 commit comments

Comments
 (0)