Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
fba4800284
|
|||
eeb176d1e9
|
|||
e92a5252b8
|
|||
e58503c20b
|
|||
16bdf8cde4 | |||
ea9a6db5b4
|
27
.gitea/workflows/on-tag.yaml
Normal file
27
.gitea/workflows/on-tag.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
name: "Build container"
|
||||
run-name: "Build container"
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "**"
|
||||
|
||||
jobs:
|
||||
BuildImage:
|
||||
runs-on: "ubuntu-22.04"
|
||||
steps:
|
||||
- name: "checkout source"
|
||||
uses: actions/checkout@v4
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: code.pztrn.name
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
tags: code.pztrn.name/containers/go-toolbox:${{ gitea.ref_name }}
|
@@ -1,4 +1,4 @@
|
||||
FROM debian:12.6-slim
|
||||
FROM debian:13.1-slim
|
||||
|
||||
COPY . /src
|
||||
RUN for file in $(find /src -type f -name "*.sh"); do chmod +x $file; done
|
||||
|
18
README.md
18
README.md
@@ -2,19 +2,21 @@
|
||||
|
||||
Docker image with everything you might need for developing apps in Go.
|
||||
|
||||
Includes neccessary headers and development packages for Fyne.
|
||||
|
||||
## What's inside
|
||||
|
||||
Debian 12 (slim) is used as base image.
|
||||
Debian 13 (slim) is used as base image.
|
||||
|
||||
| Binary | Version | Project | Repo |
|
||||
| ----------------- | ------- | --------------- | ------------------------------------------------------------- |
|
||||
| `go` | 1.22.5 | Go | |
|
||||
| `golangci-lint` | 1.59.1 | golangci-lint | [External link](https://github.com/golangci/golangci-lint) |
|
||||
| `gofumpt` | 0.6.0 | gofumpt | [External link](https://github.com/mvdan/gofumpt) |
|
||||
| `mockery_v2` | 2.43.2 | mockery | [External link](https://github.com/vektra/mockery) |
|
||||
| `task` | 3.38.0 | taskfile | [External link](https://github.com/go-task/task) |
|
||||
| ----------------- | ------- | --------------- | ------------------------------------------------------------ |
|
||||
| `go` | 1.25.1 | Go | |
|
||||
| `golangci-lint` | 2.4.0 | golangci-lint | [External link](https://github.com/golangci/golangci-lint) |
|
||||
| `gofumpt` | 0.9.0 | gofumpt | [External link](https://github.com/mvdan/gofumpt) |
|
||||
| `mockery_v2` | 2.53.4 | mockery | [External link](https://github.com/vektra/mockery) |
|
||||
| `task` | 3.44.1 | taskfile | [External link](https://github.com/go-task/task) |
|
||||
| `go-junit-report` | 2.1.0 | go-junit-report | [External link](https://github.com/jstemmer/go-junit-report) |
|
||||
| `delve` | 1.22.1 | delve | [External link](https://github.com/go-delve/delve) |
|
||||
| `delve` | 1.25.2 | delve | [External link](https://github.com/go-delve/delve) |
|
||||
|
||||
## Multiarch support
|
||||
|
||||
|
@@ -6,6 +6,11 @@ CMD=$*
|
||||
# Just ensure we have PATH defined properly.
|
||||
PATH="${PATH}:/usr/bin/:/usr/sbin/:/bin/:/usr/local/bin/:/opt/bin/"
|
||||
|
||||
# Also make sure that Go's environment variables are set.
|
||||
export GOCACHE=/home/container/go/build
|
||||
export GOMODCACHE=/home/container/go/pkg/mod
|
||||
export GOPATH=/home/container/go
|
||||
|
||||
if [ "${CMD}" == "" ]; then
|
||||
CMD="${INPUT_COMMAND}"
|
||||
fi
|
||||
|
@@ -2,3 +2,6 @@
|
||||
|
||||
apt update && apt upgrade -y
|
||||
apt install -y build-essential curl file git make
|
||||
|
||||
# Fyne dependencies.
|
||||
apt install -y libgl1-mesa-dev xorg-dev libxkbcommon-dev
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
dlv_version=1.22.1
|
||||
dlv_version=1.25.2
|
||||
|
||||
set -xe
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
gofumpt_version="0.6.0"
|
||||
gofumpt_version="0.9.0"
|
||||
|
||||
set -xe
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
set -xe
|
||||
|
||||
go_version=1.22.5
|
||||
go_version=1.25.1
|
||||
|
||||
# shellcheck disable=SC2086,SC2046,SC2164
|
||||
cd $(dirname ${BASH_SOURCE[0]})
|
||||
|
@@ -4,7 +4,7 @@
|
||||
# Line above disables shellcheck linters:
|
||||
# * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh).
|
||||
|
||||
golangci_lint_version=1.59.1
|
||||
golangci_lint_version=2.4.0
|
||||
|
||||
# shellcheck disable=SC2086,SC2046,SC2164
|
||||
cd "$(dirname ${BASH_SOURCE[0]})"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
mockery_v2_version=2.43.2
|
||||
mockery_v2_version=2.53.4
|
||||
|
||||
cd /tmp || exit 1
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
# Line above disables shellcheck linters:
|
||||
# * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh).
|
||||
|
||||
taskfile_version=3.38.0
|
||||
taskfile_version=3.44.1
|
||||
|
||||
# shellcheck disable=SC2086,SC2046,SC2164
|
||||
cd "$(dirname ${BASH_SOURCE[0]})"
|
||||
|
Reference in New Issue
Block a user