From bf870c148fba995c01e8d976de2a93aa13c6f87d Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 12 Aug 2020 17:30:17 +0200 Subject: [PATCH] Don't push the buider image anymore. --- .github/workflows/ci.yml | 32 ++++++++++---------------------- .github/workflows/pr.yml | 9 +++++---- 2 files changed, 15 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2d58b2..ddbf942 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: CI-Release on: push: @@ -6,43 +6,31 @@ on: - master 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: - needs: build-docker runs-on: ubuntu-18.04 - container: wiiuenvbuilder/setuppayload-builder:latest steps: - uses: actions/checkout@v2 - name: build binary - run: make + run: | + docker build . -t builder + docker run --rm -v ${PWD}:/project builder make - uses: actions/upload-artifact@master with: - name: artifact + name: binary path: "*.rpx" deploy-binary: needs: build-binary runs-on: ubuntu-18.04 - steps: - - uses: actions/download-artifact@master - with: - name: artifact - path: wiiu + steps: - name: Get environment variables id: get_repository_name run: | 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')) + - uses: actions/download-artifact@master + with: + name: binary + path: wiiu - name: zip artifact run: zip -r ${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip wiiu - name: Create Release diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b0c717e..f907f7e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,16 +1,17 @@ -name: CI +name: CI-PR on: [pull_request] jobs: build-binary: runs-on: ubuntu-18.04 - container: wiiuenvbuilder/setuppayload-builder:latest steps: - uses: actions/checkout@v2 - name: build binary - run: make + run: | + docker build . -t builder + docker run --rm -v ${PWD}:/project builder make - uses: actions/upload-artifact@master with: - name: artifact + name: binary path: "*.rpx" \ No newline at end of file