mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2026-04-23 14:05:26 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ed9086d91 |
+13
-10
@@ -1,19 +1,21 @@
|
|||||||
name: Release
|
name: Main
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- 'v*.*.*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: docker/setup-qemu-action@v4
|
- name: Set up QEMU
|
||||||
- uses: docker/setup-buildx-action@v4
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Docker Labels
|
- name: Docker Labels
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v6
|
uses: crazy-max/ghaction-docker-meta@v4
|
||||||
with:
|
with:
|
||||||
images: cupcakearmy/autorestic
|
images: cupcakearmy/autorestic
|
||||||
tags: |
|
tags: |
|
||||||
@@ -21,12 +23,12 @@ jobs:
|
|||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v4
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
@@ -35,9 +37,10 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v3
|
||||||
- uses: jdx/mise-action@v3
|
- uses: actions/setup-go@v3
|
||||||
- run: mise run build
|
with:
|
||||||
|
go-version: '^1.21'
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go run build/build.go
|
run: go run build/build.go
|
||||||
- name: Release
|
- name: Release
|
||||||
|
|||||||
+11
-16
@@ -2,28 +2,23 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [master]
|
||||||
- main
|
|
||||||
- master
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
env:
|
|
||||||
MISE_EXPERIMENTAL: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v3
|
||||||
- uses: jdx/mise-action@v3
|
- uses: actions/setup-go@v3
|
||||||
- run: mise run test
|
with:
|
||||||
|
go-version: '^1.21'
|
||||||
|
- run: go test -v ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v3
|
||||||
- uses: jdx/mise-action@v3
|
- uses: actions/setup-go@v3
|
||||||
- run: mise run build
|
with:
|
||||||
|
go-version: '^1.21'
|
||||||
|
- run: go build -v .
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.25-alpine as builder
|
FROM golang:1.26-alpine as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY go.* .
|
COPY go.* .
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
v24
|
v22.7.0
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
[settings]
|
|
||||||
idiomatic_version_file_enable_tools = ["node", "pnpm"]
|
|
||||||
+2
-2
@@ -5,11 +5,11 @@
|
|||||||
"start": "NEXT_TELEMETRY_DISABLED=1 next start"
|
"start": "NEXT_TELEMETRY_DISABLED=1 next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^14.2.35",
|
"next": "^14.2.7",
|
||||||
"nextra": "^2.13.4",
|
"nextra": "^2.13.4",
|
||||||
"nextra-theme-docs": "^2.13.4",
|
"nextra-theme-docs": "^2.13.4",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1"
|
"react-dom": "^18.3.1"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.33.0"
|
"packageManager": "pnpm@9.9.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+484
-486
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
module github.com/cupcakearmy/autorestic
|
module github.com/cupcakearmy/autorestic
|
||||||
|
|
||||||
go 1.26.1
|
go 1.21
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/blang/semver/v4 v4.0.0
|
github.com/blang/semver/v4 v4.0.0
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
[tools]
|
|
||||||
go = "latest"
|
|
||||||
restic = "latest"
|
|
||||||
|
|
||||||
[tasks]
|
|
||||||
build = { description = "Build the project", run = "go build -v ." }
|
|
||||||
|
|
||||||
test = { description = "Run tests", run = "go test -v ./..." }
|
|
||||||
|
|
||||||
coverage = { description = "Generate coverage report", run = "go test -coverprofile=coverage.out ./... && go tool cover -func=coverage.out && go tool cover -html=coverage.out -o coverage.html", depends = [
|
|
||||||
"test"
|
|
||||||
] }
|
|
||||||
|
|
||||||
clean = { run = "rm -f coverage.*", description = "Clean up coverage files" }
|
|
||||||
Reference in New Issue
Block a user