diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index c506bf9cd..e02d5d01a 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -41,8 +41,8 @@ jobs: uses: docker/login-action@v1 with: registry: ${{ env.REGISTRY }} - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKER_HUB_USER }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 9a4b370aa..a8d2ef0c0 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -1,4 +1,4 @@ -name: prerelease +name: Prerelease on: push: branches: @@ -31,10 +31,13 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- + + - name: Test if: ${{env.GITHUB_REF_NAME=='Beta'}} run: | go test ./... + - name: Build if: success() env: @@ -46,13 +49,13 @@ jobs: uses: andreaswilli/delete-release-assets-action@v2.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ env.GITHUB_REF_NAME }} + tag: Prerelease-${{env.GITHUB_REF_NAME}} deleteOnlyFromDrafts: false - name: Tag Repo uses: richardsimko/update-tag@v1 with: - tag_name: ${{env.GITHUB_REF_NAME}} + tag_name: Prerelease-${{env.GITHUB_REF_NAME}} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -61,7 +64,7 @@ jobs: if: ${{ success() }} with: tag: ${{env.GITHUB_REF_NAME}} - tag_name: ${{env.GITHUB_REF_NAME}} + tag_name: Prerelease-${{env.GITHUB_REF_NAME}} files: bin/* prerelease: true generate_release_notes: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2b7b70a70..45d0841f4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: release +name: Release on: push: tags: