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

feat: macos docker runner #79

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
24 changes: 16 additions & 8 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ jobs:

cd:
needs: ci
runs-on: ubuntu-22.04
name: 'cd ${{ matrix.target }}'
strategy:
matrix:
include:
- os: ubuntu-latest
target: linux/amd64
- os: self-hosted
target: linux/arm64
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
Expand All @@ -57,12 +65,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker Build
uses: docker/build-push-action@v5
with:
Expand All @@ -73,6 +75,12 @@ jobs:
cache-to: type=gha,mode=max
load: true

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker Push
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/build-push-action@v5
Expand All @@ -93,4 +101,4 @@ jobs:
tags: |
doseiai/dosei
doseiai/dosei:${{ github.ref_name }}
cache-from: type=gha
cache-from: type=gha
Loading