mirror of
https://dev.lirent.ru/Vatrog/vm-automation-signaling.git
synced 2026-06-26 04:36:37 +03:00
ci: reach the package registry over https for authenticated apt; bump 0.3.3
This commit is contained in:
@@ -45,7 +45,7 @@ jobs:
|
|||||||
- name: Attach to release
|
- name: Attach to release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
||||||
SERVER: ${{ github.server_url }}
|
SERVER: https://dev.lirent.ru
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
TAG: ${{ github.ref_name }}
|
TAG: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
@@ -84,7 +84,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install toolchain + vmie (external dependency)
|
- name: Install toolchain + vmie (external dependency)
|
||||||
env:
|
env:
|
||||||
SERVER: ${{ github.server_url }}
|
SERVER: https://dev.lirent.ru
|
||||||
OWNER: ${{ github.repository_owner }}
|
OWNER: ${{ github.repository_owner }}
|
||||||
ACTOR: ${{ github.actor }}
|
ACTOR: ${{ github.actor }}
|
||||||
TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
||||||
@@ -96,8 +96,10 @@ jobs:
|
|||||||
# The Gitea Debian registry is private: apt needs HTTP Basic Auth. [trusted=yes]
|
# The Gitea Debian registry is private: apt needs HTTP Basic Auth. [trusted=yes]
|
||||||
# only skips GPG verification, NOT authentication — hence the prior 401. The token
|
# only skips GPG verification, NOT authentication — hence the prior 401. The token
|
||||||
# is written to auth.conf.d (never echoed to the log).
|
# is written to auth.conf.d (never echoed to the log).
|
||||||
|
# machine MUST carry the scheme (https://) — apt refuses to send credentials over an
|
||||||
|
# unencrypted/unannotated endpoint (the prior 401 over the plain-http internal IP).
|
||||||
install -d -m 0700 /etc/apt/auth.conf.d
|
install -d -m 0700 /etc/apt/auth.conf.d
|
||||||
printf 'machine %s login %s password %s\n' "${SERVER#*://}" "$ACTOR" "$TOKEN" \
|
printf 'machine %s login %s password %s\n' "$SERVER" "$ACTOR" "$TOKEN" \
|
||||||
> /etc/apt/auth.conf.d/gitea.conf
|
> /etc/apt/auth.conf.d/gitea.conf
|
||||||
chmod 600 /etc/apt/auth.conf.d/gitea.conf
|
chmod 600 /etc/apt/auth.conf.d/gitea.conf
|
||||||
echo "deb [trusted=yes] ${SERVER}/api/packages/${OWNER}/debian stable main" \
|
echo "deb [trusted=yes] ${SERVER}/api/packages/${OWNER}/debian stable main" \
|
||||||
@@ -113,7 +115,7 @@ jobs:
|
|||||||
- name: Publish to Debian registry
|
- name: Publish to Debian registry
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.PUBLISH_TOKEN }} # requires scope: package:write
|
TOKEN: ${{ secrets.PUBLISH_TOKEN }} # requires scope: package:write
|
||||||
SERVER: ${{ github.server_url }}
|
SERVER: https://dev.lirent.ru
|
||||||
OWNER: ${{ github.repository_owner }}
|
OWNER: ${{ github.repository_owner }}
|
||||||
DISTRIBUTION: stable
|
DISTRIBUTION: stable
|
||||||
COMPONENT: main
|
COMPONENT: main
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
project(vmsig VERSION 0.3.2 LANGUAGES C)
|
project(vmsig VERSION 0.3.3 LANGUAGES C)
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 17)
|
set(CMAKE_C_STANDARD 17)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|||||||
Reference in New Issue
Block a user