mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-10 00:00:24 +03:00
Merge pull request #449 from LebedevRI/debian
Last-ditch effort to fix publish job
This commit is contained in:
commit
07a61cb457
30
.github/workflows/deb-publish.yml
vendored
30
.github/workflows/deb-publish.yml
vendored
@ -18,13 +18,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
|
concurrency: apt.bcachefs.org
|
||||||
runs-on: ${{ inputs.runs-on }}
|
runs-on: ${{ inputs.runs-on }}
|
||||||
env:
|
env:
|
||||||
SUITE: ${{ (github.event_name == 'push' && github.ref_type == 'tag') && 'release' || 'snapshot' }}
|
SUITE: ${{ (github.event_name == 'push' && github.ref_type == 'tag') && 'release' || 'snapshot' }}
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
contents: read
|
|
||||||
attestations: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure baseline system
|
- name: Configure baseline system
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
@ -123,20 +120,6 @@ jobs:
|
|||||||
xz-utils \
|
xz-utils \
|
||||||
zip
|
zip
|
||||||
apt clean
|
apt clean
|
||||||
- name: Pre-Configure gpg-agent / ssh
|
|
||||||
timeout-minutes: 1
|
|
||||||
shell: sudo podman exec --interactive --tty container eatmydata sh "{0}"
|
|
||||||
run: |
|
|
||||||
set -xe
|
|
||||||
mkdir -p ~/.gnupg ~/.ssh
|
|
||||||
echo "" >> ~/.gnupg/gpg-agent.conf
|
|
||||||
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf
|
|
||||||
gpgconf --kill gpg-agent
|
|
||||||
gpgconf --launch gpg-agent
|
|
||||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
||||||
echo "SSH_AUTH_SOCK=$(echo ${SSH_AUTH_SOCK})" >> ~/.env
|
|
||||||
echo "" >> /etc/ssh/ssh_known_hosts
|
|
||||||
echo "${{ secrets.SSH_SERVER_KEYS }}" >> /etc/ssh/ssh_known_hosts
|
|
||||||
- name: Import/Configure GPG
|
- name: Import/Configure GPG
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
id: gpg
|
id: gpg
|
||||||
@ -164,7 +147,6 @@ jobs:
|
|||||||
default-key ${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
default-key ${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
||||||
trusted-key ${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
trusted-key ${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
||||||
EOT
|
EOT
|
||||||
gpg-connect-agent 'keyattr ${{ secrets.GPG_AUTH_SUBKEY_KEYGRIP }} Use-for-ssh: true' /bye
|
|
||||||
tee -a ~/.gbp.conf > /dev/null <<EOT
|
tee -a ~/.gbp.conf > /dev/null <<EOT
|
||||||
[buildpackage]
|
[buildpackage]
|
||||||
sign-tags = True
|
sign-tags = True
|
||||||
@ -253,10 +235,18 @@ jobs:
|
|||||||
shell: sudo podman exec --interactive --tty container eatmydata sh "{0}"
|
shell: sudo podman exec --interactive --tty container eatmydata sh "{0}"
|
||||||
run: |
|
run: |
|
||||||
set -xe
|
set -xe
|
||||||
. ~/.env
|
|
||||||
MOUNTPOINT="${{ github.workspace }}/remotefs"
|
MOUNTPOINT="${{ github.workspace }}/remotefs"
|
||||||
mkdir -p "$MOUNTPOINT"
|
mkdir -p "$MOUNTPOINT"
|
||||||
if [ -n "${{ secrets.SSH_HOST }}" ]; then
|
if [ -n "${{ secrets.SSH_HOST }}" ]; then
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "" >> ~/.gnupg/gpg-agent.conf
|
||||||
|
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf
|
||||||
|
echo "" >> /etc/ssh/ssh_known_hosts
|
||||||
|
echo "${{ secrets.SSH_SERVER_KEYS }}" >> /etc/ssh/ssh_known_hosts
|
||||||
|
gpgconf --kill gpg-agent
|
||||||
|
gpgconf --launch gpg-agent
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
gpg-connect-agent 'keyattr ${{ secrets.GPG_AUTH_SUBKEY_KEYGRIP }} Use-for-ssh: true' /bye
|
||||||
sshfs ${{ secrets.SSH_HOST }}/uploads "$MOUNTPOINT"
|
sshfs ${{ secrets.SSH_HOST }}/uploads "$MOUNTPOINT"
|
||||||
fi
|
fi
|
||||||
REPO_ROOT="$MOUNTPOINT/public_html"
|
REPO_ROOT="$MOUNTPOINT/public_html"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user