Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Switch to libdragon toolchain generation. (#17)
Browse files Browse the repository at this point in the history
Fix docker build workflow.

Fix tag.

Update build-docker.yml

Try fix docker build.
  • Loading branch information
networkfusion committed Jan 13, 2023
1 parent c4a85bd commit 2b6cc36
Show file tree
Hide file tree
Showing 12 changed files with 407 additions and 1,009 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright (c) NetworkFusion 2023
# See LICENSE file in the project root for full license information.

name: Build Docker Container

env:
GCR_FILE: Dockerfile
GCR_REPO: n64-tools
GCR_IMAGE: gcc-toolchain-mips64
GCR_VERSION: 12.0

on:
push:
branches:
- main
- master
paths:
- '**Dockerfile'

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v3
with:
file: ${{ env.GCR_FILE }}
push: true # Will only build if this is not here
tags: |
ghcr.io/${{ env.GCR_REPO }}/${{ env.GCR_IMAGE }}:${{ env.GCR_VERSION }}
ghcr.io/${{ env.GCR_REPO }}/${{ env.GCR_IMAGE }}:latest
Loading

0 comments on commit 2b6cc36

Please sign in to comment.