Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
f970bcb94c |
5 changed files with 7 additions and 60 deletions
28
action.yml
28
action.yml
|
@ -10,21 +10,12 @@ inputs:
|
||||||
version:
|
version:
|
||||||
description: 'version for release'
|
description: 'version for release'
|
||||||
required: true
|
required: true
|
||||||
registry_username:
|
|
||||||
description: 'username for registry'
|
|
||||||
required: true
|
|
||||||
registry_password:
|
|
||||||
description: 'password for registry'
|
|
||||||
required: true
|
|
||||||
sb_db_key:
|
sb_db_key:
|
||||||
description: 'secure_boot db key to sign efi'
|
description: 'secure_boot db key to sign efi'
|
||||||
required: false
|
required: false
|
||||||
sb_db_pem:
|
sb_db_pem:
|
||||||
description: 'secure_boot db pem to sign efi'
|
description: 'secure_boot db pem to sign efi'
|
||||||
required: false
|
required: false
|
||||||
api_auth_token:
|
|
||||||
description: 'api_auth_token if needed to download base images'
|
|
||||||
required: false
|
|
||||||
#outputs:
|
#outputs:
|
||||||
# hashes:
|
# hashes:
|
||||||
# description: 'json dict of hashes of all files'
|
# description: 'json dict of hashes of all files'
|
||||||
|
@ -33,35 +24,22 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Restore and build aur
|
- name: Restore and build aur
|
||||||
uses: ./aur
|
uses: ./aur
|
||||||
with:
|
|
||||||
layer_config_file: ${{ inputs.layer_config_file }}
|
|
||||||
- name: Build images
|
- name: Build images
|
||||||
uses: ./builder
|
uses: ./builder
|
||||||
with:
|
|
||||||
layer_config_file: ${{ inputs.layer_config_file }}
|
|
||||||
out_dir: ${{ inputs.out_dir }}
|
|
||||||
registry_username: ${{ inputs.registry_username }}
|
|
||||||
registry_password: ${{ inputs.registry_password }}
|
|
||||||
version: ${{ inputs.version }}
|
|
||||||
sb_db_key: ${{ inputs.sb_db_key }}
|
|
||||||
sb_db_pem: ${{ inputs.sb_db_pem }}
|
|
||||||
api_auth_token: ${{ inputs.api_auth_token }}
|
|
||||||
|
|
||||||
- name: Upload Packages
|
- name: Upload Packages
|
||||||
run: |
|
run: |
|
||||||
cd ${{ gitea.workspace }}/out
|
cd ${{ gitea.workspace }}/out
|
||||||
for f in *;do
|
for f in *;do
|
||||||
echo "Uploading $f"
|
echo "Uploading $f"
|
||||||
du -sh $f
|
du -sh $f
|
||||||
curl --user "${{ inputs.registry_username }}:${{ inputs.registry_password }}" \
|
curl --user "${{ gitea.actor }}:${{ secrets.PACKET_TOKEN }}" \
|
||||||
--upload-file "$f" \
|
--upload-file "$f" \
|
||||||
"https://git.fml128.ch/api/packages/${{ github.repository_owner }}/generic/${GITHUB_REPOSITORY#*/}/${{ steps.version.outputs.RELEASE_VERSION }}/$f"
|
"https://git.fml128.ch/api/packages/${{ github.repository_owner }}/generic/${GITHUB_REPOSITORY#*/}/${{ steps.version.outputs.RELEASE_VERSION }}/$f"
|
||||||
done
|
done
|
||||||
shell: bash
|
|
||||||
- name: If failure delete packages
|
- name: If failure delete packages
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
curl --user "${{ inputs.registry_username }}:${{ inputs.registry_password }}" \
|
curl --user "${{ gitea.actor }}:${{ secrets.PACKET_TOKEN }}" \
|
||||||
-X DELETE \
|
-X DELETE \
|
||||||
"https://git.fml128.ch/api/packages/${{ github.repository_owner }}/generic/${GITHUB_REPOSITORY#*/}/${{ steps.version.outputs.RELEASE_VERSION }}"
|
"https://git.fml128.ch/api/packages/${{ github.repository_owner }}/generic/${GITHUB_REPOSITORY#*/}/${{ steps.version.outputs.RELEASE_VERSION }}"
|
||||||
shell: bash
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Get aur cache key
|
- name: Get aur cache key
|
||||||
id: cache-aur-key
|
id: cache-aur-key
|
||||||
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.03.140102
|
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.01.211903
|
||||||
with:
|
with:
|
||||||
args: generate_aur_cache_key ${{ inputs.layer_config_file }}
|
args: generate_aur_cache_key ${{ inputs.layer_config_file }}
|
||||||
- name: Restore aur cache
|
- name: Restore aur cache
|
||||||
|
@ -27,7 +27,7 @@ runs:
|
||||||
aur-${{ github.repository }}-
|
aur-${{ github.repository }}-
|
||||||
- name: Build aur
|
- name: Build aur
|
||||||
if: steps.cache-aur-key.outputs.cache-aur-key != 'empty' && steps.cache-aur-restore.outputs.cache-hit != 'true'
|
if: steps.cache-aur-key.outputs.cache-aur-key != 'empty' && steps.cache-aur-restore.outputs.cache-hit != 'true'
|
||||||
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.03.140102
|
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.01.211903
|
||||||
with:
|
with:
|
||||||
args: build_aur_packages ${{ inputs.layer_config_file }}
|
args: build_aur_packages ${{ inputs.layer_config_file }}
|
||||||
- name: Save aur cache
|
- name: Save aur cache
|
||||||
|
|
|
@ -10,12 +10,6 @@ inputs:
|
||||||
version:
|
version:
|
||||||
description: 'version for release'
|
description: 'version for release'
|
||||||
required: true
|
required: true
|
||||||
registry_username:
|
|
||||||
description: 'username for registry'
|
|
||||||
required: true
|
|
||||||
registry_password:
|
|
||||||
description: 'password for registry'
|
|
||||||
required: true
|
|
||||||
sb_db_key:
|
sb_db_key:
|
||||||
description: 'secure_boot db key to sign efi'
|
description: 'secure_boot db key to sign efi'
|
||||||
required: false
|
required: false
|
||||||
|
@ -25,9 +19,6 @@ inputs:
|
||||||
api_auth_token:
|
api_auth_token:
|
||||||
description: 'api_auth_token if needed to download base images'
|
description: 'api_auth_token if needed to download base images'
|
||||||
required: false
|
required: false
|
||||||
gpg_sign_key:
|
|
||||||
description: 'gpg key to sign images'
|
|
||||||
required: false
|
|
||||||
|
|
||||||
#outputs:
|
#outputs:
|
||||||
# hashes:
|
# hashes:
|
||||||
|
@ -36,15 +27,12 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Build image
|
- name: Build image
|
||||||
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.03.140102
|
uses: docker://git.fml128.ch/fml128/idkyet-builder:buildah
|
||||||
with:
|
with:
|
||||||
args: build ${{ inputs.layer_config_file }}
|
args: build ${{ inputs.layer_config_file }}
|
||||||
env:
|
env:
|
||||||
INPUT_VERSION: ${{ inputs.version }}
|
INPUT_VERSION: ${{ inputs.version }}
|
||||||
INPUT_OUT_DIR: ${{ inputs.out_dir }}
|
INPUT_OUT_DIR: ${{ inputs.out_dir }}
|
||||||
INPUT_REGISTRY_USERNAME: ${{ inputs.registry_username }}
|
|
||||||
INPUT_REGISTRY_PASSWORD: ${{ inputs.registry_password }}
|
|
||||||
INPUT_SB_DB_KEY: ${{ inputs.sb_db_key }}
|
INPUT_SB_DB_KEY: ${{ inputs.sb_db_key }}
|
||||||
INPUT_SB_DB_PEM: ${{ inputs.sb_db_pem }}
|
INPUT_SB_DB_PEM: ${{ inputs.sb_db_pem }}
|
||||||
INPUT_API_AUTH_TOKEN: ${{ inputs.api_auth_token }}
|
INPUT_API_AUTH_TOKEN: ${{ inputs.api_auth_token }}
|
||||||
GPG_SIGN_KEY: ${{ inputs.gpg_sign_key }}
|
|
||||||
|
|
19
default.json
19
default.json
|
@ -1,19 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": [
|
|
||||||
"local>FML128/renovate-config"
|
|
||||||
],
|
|
||||||
"customManagers": [
|
|
||||||
{
|
|
||||||
"description": "idkyet updater",
|
|
||||||
"customType": "regex",
|
|
||||||
"fileMatch": [
|
|
||||||
"^.+\\.ya?ml$"
|
|
||||||
],
|
|
||||||
"matchStrings": [
|
|
||||||
"previous_layer: (?<depName>[^:]+):(?<currentValue>[^\\s]+)"
|
|
||||||
],
|
|
||||||
"datasourceTemplate": "docker"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -9,6 +9,6 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Validate image
|
- name: Validate image
|
||||||
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.03.140102
|
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.01.211903
|
||||||
with:
|
with:
|
||||||
args: validate ${{ inputs.layer_config_file }}
|
args: validate ${{ inputs.layer_config_file }}
|
Loading…
Add table
Reference in a new issue