This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to libdragon toolchain generation. (#17)
Fix docker build workflow. Fix tag. Update build-docker.yml Try fix docker build.
- Loading branch information
1 parent
c4a85bd
commit 2b6cc36
Showing
12 changed files
with
407 additions
and
1,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.