diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 061b083..53b6881 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,8 +36,9 @@ jobs: - name: Test docker run: | + set -ex docker build -t test --target test --build-arg LDFLAGS="${{ env.LDFLAGS }}" .. - docker run --rm --name test -p 8080 test & + docker run --rm --name test -p 8080:80 test & go run . hurl docker stop test working-directory: ./test @@ -50,7 +51,7 @@ jobs: build-args: | LDFLAGS=${{ env.LDFLAGS }} tags: | - infogulch/xtemplate:{{ env.VERSION }} + infogulch/xtemplate:${{ env.VERSION }} ${{ startsWith(github.ref, 'refs/tags/v') && 'infogulch/xtemplate:latest' || null }} - uses: actions/upload-artifact@v4