asd
This commit is contained in:
66
.github/workflows/main.yml
vendored
66
.github/workflows/main.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
contents: "read"
|
contents: "read"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: ["native", "amd64", "arm64v8"]
|
arch: ["arm64v8"]
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout project"
|
- name: "Checkout project"
|
||||||
uses: "actions/checkout@v4"
|
uses: "actions/checkout@v4"
|
||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
contents: "read"
|
contents: "read"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: ["amd64", "arm64v8"]
|
arch: ["arm64v8"]
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout project"
|
- name: "Checkout project"
|
||||||
uses: "actions/checkout@v4"
|
uses: "actions/checkout@v4"
|
||||||
@@ -59,40 +59,38 @@ jobs:
|
|||||||
- name: "Login to Docker Hub"
|
- name: "Login to Docker Hub"
|
||||||
uses: "docker/login-action@v3"
|
uses: "docker/login-action@v3"
|
||||||
with:
|
with:
|
||||||
registry: "docker.io"
|
registry: "d.lilpenguins.com"
|
||||||
username: "${{ secrets.DOCKERHUB_USERNAME }}"
|
|
||||||
password: "${{ secrets.DOCKERHUB_TOKEN }}"
|
|
||||||
- name: "Load and push image"
|
- name: "Load and push image"
|
||||||
run: |
|
run: |
|
||||||
make "load-${{ matrix.arch }}-image" "push-${{ matrix.arch }}-image"
|
make "load-${{ matrix.arch }}-image" "push-${{ matrix.arch }}-image"
|
||||||
|
|
||||||
push-manifest:
|
# push-manifest:
|
||||||
name: "Push manifest"
|
# name: "Push manifest"
|
||||||
if: "startsWith(github.ref, 'refs/tags/v')"
|
# if: "startsWith(github.ref, 'refs/tags/v')"
|
||||||
needs: ["push"]
|
# needs: ["push"]
|
||||||
runs-on: "ubuntu-latest"
|
# runs-on: "ubuntu-latest"
|
||||||
permissions:
|
# permissions:
|
||||||
contents: "read"
|
# contents: "read"
|
||||||
steps:
|
# steps:
|
||||||
- name: "Checkout project"
|
# - name: "Checkout project"
|
||||||
uses: "actions/checkout@v4"
|
# uses: "actions/checkout@v4"
|
||||||
- name: "Login to Docker Hub"
|
# - name: "Login to Docker Hub"
|
||||||
uses: "docker/login-action@v3"
|
# uses: "docker/login-action@v3"
|
||||||
with:
|
# with:
|
||||||
registry: "docker.io"
|
# registry: "docker.io"
|
||||||
username: "${{ secrets.DOCKERHUB_USERNAME }}"
|
# username: "${{ secrets.DOCKERHUB_USERNAME }}"
|
||||||
password: "${{ secrets.DOCKERHUB_TOKEN }}"
|
# password: "${{ secrets.DOCKERHUB_TOKEN }}"
|
||||||
- name: "Push manifest"
|
# - name: "Push manifest"
|
||||||
run: |
|
# run: |
|
||||||
make push-cross-manifest
|
# make push-cross-manifest
|
||||||
|
|
||||||
publish-github-release:
|
# publish-github-release:
|
||||||
name: "Publish GitHub release"
|
# name: "Publish GitHub release"
|
||||||
if: "startsWith(github.ref, 'refs/tags/v')"
|
# if: "startsWith(github.ref, 'refs/tags/v')"
|
||||||
needs: ["push-manifest"]
|
# needs: ["push-manifest"]
|
||||||
runs-on: "ubuntu-latest"
|
# runs-on: "ubuntu-latest"
|
||||||
permissions:
|
# permissions:
|
||||||
contents: "write"
|
# contents: "write"
|
||||||
steps:
|
# steps:
|
||||||
- name: "Publish"
|
# - name: "Publish"
|
||||||
uses: "hectorm/ghaction-release@066200d04c3549852afa243d631ea3dc93390f68"
|
# uses: "hectorm/ghaction-release@066200d04c3549852afa243d631ea3dc93390f68"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ m4_changequote([[, ]])
|
|||||||
## "build" stage
|
## "build" stage
|
||||||
##################################################
|
##################################################
|
||||||
|
|
||||||
m4_ifdef([[CROSS_ARCH]], [[FROM docker.io/CROSS_ARCH/ubuntu:24.04]], [[FROM docker.io/ubuntu:24.04]]) AS build
|
m4_ifdef([[CROSS_ARCH]], [[FROM dtcooper/raspberrypi-os:latest]], [[FROM dtcooper/raspberrypi-os:latest]]) AS build
|
||||||
|
|
||||||
SHELL ["/bin/sh", "-euc"]
|
SHELL ["/bin/sh", "-euc"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user