Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add apple silicon runners #16

Closed
wants to merge 23 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 30 additions & 11 deletions .github/workflows/tool-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ on:
jobs:
https-tool-config:
name: https-tool-config
runs-on: ubuntu-latest
strategy:
matrix:
runner: [ubuntu-latest, macos-13-xlarge]
include:
- platforms: "linux/amd64"
runner: ubuntu-latest
- platforms: "linux/arm64"
runner: macos-13-xlarge
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -33,36 +41,46 @@ jobs:
REGISTRY="ghcr.io"
IMAGE="${REGISTRY}/${{ github.repository_owner }}/https-tool-config"
TAGS="${IMAGE}:${{ github.sha }},${IMAGE}:latest"
echo "tags=${TAGS,,}" >> $GITHUB_OUTPUT
TAGS_LOWER=$(echo "$TAGS" | tr '[:upper:]' '[:lower:]')
echo "tags=${TAGS_LOWER}" >> $GITHUB_OUTPUT
- name: Showtag
id: showtag
run: echo ${{ steps.prep.outputs.tags }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64'
- name: Print matrix runner
run: |
echo ${{ matrix.runner }}
- name: Install docker
if: matrix.runner == 'macos-13-xlarge'
run: |
brew install lima
limactl start default
lima docker run hello-world

- name: Docker Buildx setup
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login in to registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & Publish Image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
file: docker/tool-config.Dockerfile
build-args: |
protocol=https
tags: ${{ steps.prep.outputs.tags }}
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platforms }}
outputs: type=image,annotation-index.org.opencontainers.image.description=Config files for admin-sys dashboard tools connecting to psinode over https on 8080
http-tool-config:
name: http-tool-config
runs-on: ubuntu-latest
strategy:
matrix:
runner: [ubuntu-latest, macos-latest-xlarge]
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -75,7 +93,8 @@ jobs:
REGISTRY="ghcr.io"
IMAGE="${REGISTRY}/${{ github.repository_owner }}/http-tool-config"
TAGS="${IMAGE}:${{ github.sha }},${IMAGE}:latest"
echo "tags=${TAGS,,}" >> $GITHUB_OUTPUT
TAGS_LOWER=$(echo "$TAGS" | tr '[:upper:]' '[:lower:]')
echo "tags=$TAGS_LOWER" >> $GITHUB_OUTPUT
- name: Showtag
id: showtag
run: echo ${{ steps.prep.outputs.tags }}
Expand Down
Loading