mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-02-05 08:17:59 +00:00
Compare commits
3 Commits
use-shared
...
buildx
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84470a0fa7 | ||
|
|
b470b82e2a | ||
|
|
a0700e7399 |
23
.github/workflows/pull-requests.yaml
vendored
23
.github/workflows/pull-requests.yaml
vendored
@@ -11,7 +11,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: [oracle-4cpu-16gb-x86-64]
|
runs-on: [self-hosted]
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
@@ -27,29 +27,22 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
|
|
||||||
|
- name: Set up Docker config
|
||||||
|
run: cp -r ~/.docker ${{ runner.temp }}/.docker
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
env:
|
||||||
- name: Install dependencies
|
DOCKER_CONFIG: ${{ runner.temp }}/.docker
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
sudo mkdir -p -m 755 /etc/apt/keyrings
|
|
||||||
sudo wget -O /etc/apt/keyrings/githubcli-archive-keyring.gpg https://cli.github.com/packages/githubcli-archive-keyring.gpg
|
|
||||||
sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg
|
|
||||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y jq skopeo gh gawk
|
|
||||||
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
|
|
||||||
sudo chmod +x /usr/local/bin/yq
|
|
||||||
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | sudo bash
|
|
||||||
sudo modprobe loop
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: make build
|
run: make build
|
||||||
|
env:
|
||||||
|
DOCKER_CONFIG: ${{ runner.temp }}/.docker
|
||||||
|
|
||||||
- name: Build Talos image
|
- name: Build Talos image
|
||||||
run: make -C packages/core/installer talos-nocloud
|
run: make -C packages/core/installer talos-nocloud
|
||||||
|
|||||||
6
.github/workflows/tags.yaml
vendored
6
.github/workflows/tags.yaml
vendored
@@ -15,7 +15,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
prepare-release:
|
prepare-release:
|
||||||
name: Prepare Release
|
name: Prepare Release
|
||||||
runs-on: [oracle-4cpu-16gb-x86-64]
|
runs-on: [self-hosted]
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
@@ -99,11 +99,15 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
env:
|
||||||
|
DOCKER_CONFIG: ${{ runner.temp }}/.docker
|
||||||
|
|
||||||
# Build project artifacts
|
# Build project artifacts
|
||||||
- name: Build
|
- name: Build
|
||||||
if: steps.check_release.outputs.skip == 'false'
|
if: steps.check_release.outputs.skip == 'false'
|
||||||
run: make build
|
run: make build
|
||||||
|
env:
|
||||||
|
DOCKER_CONFIG: ${{ runner.temp }}/.docker
|
||||||
|
|
||||||
# Commit built artifacts
|
# Commit built artifacts
|
||||||
- name: Commit release artifacts
|
- name: Commit release artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user