From 1dfb7ff6a5da4f4b424601937a80e9a9d94ead93 Mon Sep 17 00:00:00 2001 From: Ralph Gasser Date: Wed, 19 May 2021 14:07:51 +0200 Subject: [PATCH] Adjusted GitHub action to generate and upload release asset. --- .github/workflows/release.yml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb478a21e..59f9c1f68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,9 +5,6 @@ on: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 -env: - IMAGE_NAME: dres - jobs: build: runs-on: ubuntu-latest @@ -49,18 +46,4 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: ./backend/build/distributions/dres-dist.tar asset_name: dres-dist-${{ env.VERSION }}.tar - asset_content_type: application/tar - - name: Build Docker Image - run: docker build . --file Dockerfile --tag ${{ env.IMAGE_NAME }} - - name: Log into Docker Registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ secrets.DOCKER_USERNAME }} --password-stdin - - name: Push Docker image - run: | - IMAGE_ID=docker.pkg.github.com/dres-dev/dres/${{ env.IMAGE_NAME }} - - # Use Docker `latest` tag convention - [ "$VERSION" == "master" ] && VERSION=latest - echo IMAGE_ID=$IMAGE_ID - echo VERSION=$VERSION - docker tag $IMAGE_NAME $IMAGE_ID:$VERSION - docker push $IMAGE_ID:$VERSION \ No newline at end of file + asset_content_type: application/tar \ No newline at end of file