Fix actions
This commit is contained in:
7
.github/workflows/main.yaml
vendored
7
.github/workflows/main.yaml
vendored
@@ -15,9 +15,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 22
|
||||||
- run: "make clean"
|
- run: "make clean"
|
||||||
- run: "make assets"
|
- run: "make assets"
|
||||||
- name: "Make sure gotty.js bundle is up-to-date"
|
- name: "Make sure gotty.js bundle is up-to-date"
|
||||||
@@ -34,11 +36,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
- name: "Build & test"
|
- name: "Build & test"
|
||||||
run: "make tools test cross_compile"
|
run: "make tools test cross_compile"
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
if: ${{ !env.ACT }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: binaries
|
name: binaries
|
||||||
|
|||||||
3
.github/workflows/pre-release.yaml
vendored
3
.github/workflows/pre-release.yaml
vendored
@@ -30,6 +30,7 @@ jobs:
|
|||||||
- uses: docker/setup-qemu-action@v2
|
- uses: docker/setup-qemu-action@v2
|
||||||
- uses: docker/setup-buildx-action@v2
|
- uses: docker/setup-buildx-action@v2
|
||||||
- uses: docker/login-action@v2
|
- uses: docker/login-action@v2
|
||||||
|
if: ${{ !env.ACT }}
|
||||||
with:
|
with:
|
||||||
username: "${{ secrets.DOCKER_HUB_USER }}"
|
username: "${{ secrets.DOCKER_HUB_USER }}"
|
||||||
password: "${{ secrets.DOCKER_HUB_TOKEN }}"
|
password: "${{ secrets.DOCKER_HUB_TOKEN }}"
|
||||||
@@ -37,6 +38,6 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
push: true
|
push: ${{ !env.ACT }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
3
.github/workflows/quick-build.yaml
vendored
3
.github/workflows/quick-build.yaml
vendored
@@ -17,11 +17,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
- name: "Build"
|
- name: "Build"
|
||||||
run: "touch bindata/* bindata/*/* ; make"
|
run: "touch bindata/* bindata/*/* ; make"
|
||||||
|
|
||||||
- name: Upload linux/amd64 artifact
|
- name: Upload linux/amd64 artifact
|
||||||
|
if: ${{ !env.ACT }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: gotty-linux-amd64
|
name: gotty-linux-amd64
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -18,6 +18,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
- name: "Build & test"
|
- name: "Build & test"
|
||||||
run: "make tools test release-artifacts"
|
run: "make tools test release-artifacts"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
FROM node:16 as js-build
|
FROM node:22 as js-build
|
||||||
WORKDIR /gotty
|
WORKDIR /gotty
|
||||||
COPY js /gotty/js
|
COPY js /gotty/js
|
||||||
COPY Makefile /gotty/
|
COPY Makefile /gotty/
|
||||||
RUN make bindata/static/js/gotty.js.map
|
RUN make bindata/static/js/gotty.js.map
|
||||||
|
|
||||||
FROM golang:1.20 as go-build
|
FROM golang:1.23 as go-build
|
||||||
WORKDIR /gotty
|
WORKDIR /gotty
|
||||||
COPY . /gotty
|
COPY . /gotty
|
||||||
COPY --from=js-build /gotty/js/node_modules /gotty/js/node_modules
|
COPY --from=js-build /gotty/js/node_modules /gotty/js/node_modules
|
||||||
|
|||||||
Reference in New Issue
Block a user