flow not triggered
Some checks failed
Build Push / build (push) Has been cancelled
Generic Build / build (push) Failing after 4s

This commit is contained in:
maximo tejeda 2024-11-15 12:12:26 -04:00
parent 3febc960bb
commit e32e0f52f6
2 changed files with 11 additions and 12 deletions

View File

@ -7,9 +7,9 @@ jobs:
build:
runs-on: ubuntu-latest
env:
TOKEN: ${{ secrets.TOKEN }}
USERNAME: ${{ vars.USERNAME }}
TAG_VERSION: ${{ github.ref_name }}
TOKEN: ${{ secrets.TOKEN }}
USERNAME: ${{ vars.USERNAME }}
TAG_VERSION: ${{ github.ref_name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
@ -40,5 +40,5 @@ jobs:
push: true
tags: git.maximotejeda.com/maximo/ddns:${{ github.ref_name }}
build-args: |
version=${{ github.ref_name }}
SHORTSHA=${{ steps.calculate-sha.outputs.shortsha }}
version=${{ github.ref_name }}
SHORTSHA=${{ steps.calculate-sha.outputs.shortsha }}

View File

@ -7,9 +7,9 @@ jobs:
build:
runs-on: ubuntu-latest
env:
TOKEN: ${{ secrets.TOKEN }}
USERNAME: ${{ vars.USERNAME }}
TAG_VERSION: ${{ github.ref_name }}
TOKEN: ${{ secrets.TOKEN }}
USERNAME: ${{ vars.USERNAME }}
TAG_VERSION: ${{ github.ref_name }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
@ -23,11 +23,10 @@ jobs:
- name: set shortsha
id: set-sha
run: |
echo "shortsha=$(git rev-parse --short HEAD)" >> GITHUB_OUTPUT
echo "shortsha=$(git rev-parse --short HEAD)" >> GITHUB_OUTPUT
- name: Build amd64
run: |
run: |
shortsha=`git rev-parse --short HEAD` GOOS=linux GOARCH=amd64 go build -o bin/ddns_amd64_$TAG_VERSION "-X 'main.Shortsha=${{ steps.set-sha.outputs.shortsha }}' -X 'main.Version=$TAG_VERSION' -X 'main.Aarch=amd64'" ./cmd/...
- name: Build arm64
@ -44,5 +43,5 @@ jobs:
- name: test env download path
run: |
echo "curl -OJ http://gitea/api/packages/$USERNAME/generic/ddns/arm64_$TAG_VERSION/ddns"
echo "curl -OJ http://gitea/api/packages/$USERNAME/generic/ddns/arm64_$TAG_VERSION/ddns"