-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add container image for golang fyne.io ci
Signed-off-by: Heathcliff <[email protected]>
- Loading branch information
1 parent
a4270f5
commit 8dd8e75
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Build go-fyne-ci | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "apps/go-fyne-ci/Dockerfile" | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "apps/go-fyne-ci/Dockerfile" | ||
- ".github/workflows/build-go-fyne-ci.yaml" | ||
merge_group: | ||
branches: ["main"] | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yaml | ||
permissions: | ||
contents: read | ||
packages: write | ||
with: | ||
app: go-fyne-ci | ||
dry-run: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM docker.io/library/golang:1.21.6@sha256:7026fb72cfa9cc112e4d1bf4b35a15cac61a413d0252d06615808e7c987b33a7 | ||
|
||
# renovate: datasource=github-releases depName=golangci/golangci-lint | ||
ARG GOLANGCI_LINT_VERSION=v1.55.2 | ||
|
||
RUN apt-get update && apt-get install -y gcc libgl1-mesa-dev xorg-dev && apt-get clean | ||
|
||
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION} | ||
|
||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# go-fyne-ci | ||
|
||
Simple image useful for ci related jobs when developing fyne.io apps. | ||
|
||
Contains all the necessary dependencies, golang as well as golangci-lint. |