diff --git a/.github/workflows/image_creation.yaml b/.github/workflows/image_creation.yaml index 6e3f1e8..c98dee2 100644 --- a/.github/workflows/image_creation.yaml +++ b/.github/workflows/image_creation.yaml @@ -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 }} diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml index 6ac003d..3ee02f4 100644 --- a/.github/workflows/tags.yml +++ b/.github/workflows/tags.yml @@ -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"