Compare commits

...

2 Commits

Author SHA1 Message Date
Maschell
1fe026f532 Use actions/checkout@v3 2023-03-15 21:12:37 +01:00
Maschell
44181f80b7 Change docker registry to ghcr.io 2023-03-15 21:12:37 +01:00
4 changed files with 17 additions and 13 deletions

View File

@ -6,15 +6,15 @@ jobs:
clang-format: clang-format:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: clang-format - name: clang-format
run: | run: |
docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./source ./include docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./source ./include
build-lib: build-lib:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: clang-format needs: clang-format
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: build lib - name: build lib
run: | run: |
docker build . -f Dockerfile.buildlocal -t builder docker build . -f Dockerfile.buildlocal -t builder

View File

@ -3,14 +3,19 @@ on:
push: push:
branches: branches:
- master - master
permissions:
contents: read
packages: write
jobs: jobs:
clang-format: clang-format:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: clang-format - name: clang-format
run: | run: |
docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./source ./include docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./source ./include
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: clang-format needs: clang-format
@ -20,14 +25,13 @@ jobs:
id: get_release_tag id: get_release_tag
run: | run: |
echo RELEASE_VERSION=$(echo $(date '+%Y%m%d')) >> $GITHUB_ENV echo RELEASE_VERSION=$(echo $(date '+%Y%m%d')) >> $GITHUB_ENV
echo REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//" | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
echo REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $1}' | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Publish to Registry - name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master uses: elgohr/Publish-Docker-Github-Action@v5
with: with:
name: ${{ env.REPOSITORY_OWNER }}/${{ env.REPOSITORY_NAME }} name: ${{ github.repository }}
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ github.actor }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
snapshot: true snapshot: true
cache: true cache: true
tags: "latest, ${{ env.RELEASE_VERSION }}" tags: "latest, ${{ env.RELEASE_VERSION }}"

View File

@ -1,4 +1,4 @@
FROM wiiuenv/devkitppc:20220806 FROM ghcr.io/wiiu-env/devkitppc:20220806
WORKDIR tmp_build WORKDIR tmp_build
COPY . . COPY . .

View File

@ -1,3 +1,3 @@
FROM wiiuenv/devkitppc:20220806 FROM ghcr.io/wiiu-env/devkitppc:20220806
WORKDIR project WORKDIR project