[TASK] Change to own build image, change resource url

This commit is contained in:
Philipp Dieter 2025-07-25 12:21:06 +02:00
parent ba84d603a8
commit 1308cdb12b
2 changed files with 9 additions and 4 deletions

View File

@ -1,2 +1,5 @@
set_pipeline: set_pipeline:
fly -t datentonne sp -p gitea -c pipeline.yml fly -t datentonne sp -p gitea -c pipeline.yml
trigger_job:
fly -t datentonne tj -j gitea/build -w

View File

@ -3,7 +3,7 @@ resource_types:
- name: aptly-resource - name: aptly-resource
type: docker-image type: docker-image
source: source:
repository: docker.datentonne.net/concourse/aptly-resource repository: git.datentonne.net/docker-public/aptly-resource
tag: latest tag: latest
resources: resources:
- name: go-gitea - name: go-gitea
@ -25,6 +25,7 @@ resources:
username: ((aptly.username)) username: ((aptly.username))
password: ((aptly.password)) password: ((aptly.password))
timeout: 1801 timeout: 1801
keep_versions: 5
jobs: jobs:
- name: build - name: build
plan: plan:
@ -32,13 +33,15 @@ jobs:
trigger: true trigger: true
params: params:
globs: globs:
- gitea-*-linux-amd64 - gitea-1*-linux-amd64
- task: build - task: build
config: config:
platform: linux platform: linux
image_resource: image_resource:
type: registry-image type: registry-image
source: { repository: ruby } source:
repository: git.datentonne.net/docker-public/fpm-docker
tag: latest
inputs: inputs:
- name: go-gitea - name: go-gitea
outputs: outputs:
@ -50,7 +53,6 @@ jobs:
- | - |
export VERSION="$(cat go-gitea/version)" export VERSION="$(cat go-gitea/version)"
export VERSION_OUT="$(cat go-gitea/version)-$(date +%s)" export VERSION_OUT="$(cat go-gitea/version)-$(date +%s)"
gem install fpm
chmod +x go-gitea/gitea-${VERSION}-linux-amd64 chmod +x go-gitea/gitea-${VERSION}-linux-amd64
fpm --verbose -f -n gitea -s dir -t deb -v $VERSION_OUT go-gitea/gitea-${VERSION}-linux-amd64=/usr/bin/gitea fpm --verbose -f -n gitea -s dir -t deb -v $VERSION_OUT go-gitea/gitea-${VERSION}-linux-amd64=/usr/bin/gitea
mv -v gitea_${VERSION_OUT}_amd64.deb deb/ mv -v gitea_${VERSION_OUT}_amd64.deb deb/