Skip to content

Commit

Permalink
Update actions in yml files (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
  • Loading branch information
marcelGoerentz authored Jun 13, 2024
1 parent f8901d5 commit 7c47070
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 25 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4
with:
ref: beta

- name: Set up and Build
uses: actions/setup-go@v5.0.1
uses: actions/setup-go@v5
with:
go-version: 1.22
id: go
Expand All @@ -27,18 +27,9 @@ jobs:
- name: Create a Release
uses: softprops/action-gh-release@v2.0.5
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
name: Development Build
tag_name: latest-beta

#- name: Release
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# automatic_release_tag: "latest-beta"
# prerelease: true
# title: "Development Build"
# files: dist/*
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,17 @@ jobs:
go mod tidy && go mod vendor
bash ${GITHUB_WORKSPACE}/Utility/create_binaries.sh
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker Build Setup
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8

- name: Docker Build and Push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand All @@ -47,7 +45,7 @@ jobs:
tags: mgoerentz/threadfin:latest,mgoerentz/threadfin:${{ github.ref_name }}

- name: Docker Nvidia Build and Push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
build-args: NVIDIA=1
Expand All @@ -56,9 +54,11 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8
tags: mgoerentz/threadfin:latest-nvidia,mgoerentz/threadfin:${{ github.ref_name }}-nvidia

- name: Release
uses: "marvinpinto/action-automatic-releases@latest"

- name: Create a Release
uses: softprops/action-gh-release@v2
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: dist/*
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
name: Development Build
tag_name: latest-beta

0 comments on commit 7c47070

Please sign in to comment.