Skip to content

Commit

Permalink
Add container image for golang fyne.io ci
Browse files Browse the repository at this point in the history
Signed-off-by: Heathcliff <[email protected]>
  • Loading branch information
heathcliff26 committed Jan 10, 2024
1 parent a4270f5 commit 8dd8e75
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-go-fyne-ci.yaml
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
10 changes: 10 additions & 0 deletions apps/go-fyne-ci/Dockerfile
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
5 changes: 5 additions & 0 deletions apps/go-fyne-ci/README.md
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.

0 comments on commit 8dd8e75

Please sign in to comment.