Don't push the buider image anymore.

This commit is contained in:
Maschell 2020-08-12 17:30:17 +02:00
parent becc30b8dc
commit bf870c148f
2 changed files with 15 additions and 26 deletions

View File

@ -1,4 +1,4 @@
name: CI name: CI-Release
on: on:
push: push:
@ -6,43 +6,31 @@ on:
- master - master
jobs: jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: wiiuenv/setuppayload-builder
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
cache: true
tags: "latest"
build-binary: build-binary:
needs: build-docker
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
container: wiiuenvbuilder/setuppayload-builder:latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: build binary - name: build binary
run: make run: |
docker build . -t builder
docker run --rm -v ${PWD}:/project builder make
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@master
with: with:
name: artifact name: binary
path: "*.rpx" path: "*.rpx"
deploy-binary: deploy-binary:
needs: build-binary needs: build-binary
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/download-artifact@master
with:
name: artifact
path: wiiu
- name: Get environment variables - name: Get environment variables
id: get_repository_name id: get_repository_name
run: | run: |
echo ::set-env name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//") echo ::set-env name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")
echo ::set-env name=DATETIME::$(echo $(date '+%Y%m%d-%H%M%S')) echo ::set-env name=DATETIME::$(echo $(date '+%Y%m%d-%H%M%S'))
- uses: actions/download-artifact@master
with:
name: binary
path: wiiu
- name: zip artifact - name: zip artifact
run: zip -r ${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip wiiu run: zip -r ${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip wiiu
- name: Create Release - name: Create Release

View File

@ -1,16 +1,17 @@
name: CI name: CI-PR
on: [pull_request] on: [pull_request]
jobs: jobs:
build-binary: build-binary:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
container: wiiuenvbuilder/setuppayload-builder:latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: build binary - name: build binary
run: make run: |
docker build . -t builder
docker run --rm -v ${PWD}:/project builder make
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@master
with: with:
name: artifact name: binary
path: "*.rpx" path: "*.rpx"