forked from admin/ansible
fix(ci): use REGISTRY_USERNAME/TOKEN (which are populated); runner OS via matrix.os
This commit is contained in:
@@ -12,32 +12,19 @@ on:
|
||||
default: v0.1.0-test1
|
||||
|
||||
jobs:
|
||||
dump:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: dump env
|
||||
run: |
|
||||
echo "=== env (non-secret) ==="
|
||||
env | sort
|
||||
echo
|
||||
echo "=== secrets ==="
|
||||
echo "PACKAGE_PUSH_USERNAME = ${{ secrets.PACKAGE_PUSH_USERNAME }}"
|
||||
echo "PACKAGE_PUSH_TOKEN = ${{ secrets.PACKAGE_PUSH_TOKEN }}"
|
||||
echo "REGISTRY_USERNAME = ${{ secrets.REGISTRY_USERNAME }}"
|
||||
echo "REGISTRY_TOKEN = ${{ secrets.REGISTRY_TOKEN }}"
|
||||
echo "REGISTRY_PASSWORD = ${{ secrets.REGISTRY_PASSWORD }}"
|
||||
echo "PACKAGE_PUSH = ${{ secrets.PACKAGE_PUSH }}"
|
||||
|
||||
build:
|
||||
needs: dump
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/arm/v7
|
||||
include:
|
||||
- platform: linux/amd64
|
||||
os: ubuntu-24.04
|
||||
- platform: linux/arm64
|
||||
os: ubuntu-24.04-arm
|
||||
- platform: linux/arm/v7
|
||||
os: ubuntu-24.04-arm
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -52,9 +39,8 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.rudolf.keenetic.link
|
||||
username: ${{ secrets.PACKAGE_PUSH_USERNAME }}
|
||||
password: ${{ secrets.PACKAGE_PUSH_TOKEN }}
|
||||
continue-on-error: true
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: resolve version
|
||||
id: version
|
||||
|
||||
Reference in New Issue
Block a user