From deb73dcc9f541ad332e4267fb79444ea6459565e Mon Sep 17 00:00:00 2001 From: Tom Lebreux Date: Fri, 15 Nov 2024 15:45:18 -0500 Subject: [PATCH] [v0.1] Create release on tag push (#530) * Add release GHA * Install awk --- .github/workflows/release.yaml | 22 ++++++++++++++++++++++ Dockerfile.dapper | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..f671538f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +name: Release + +on: + push: + tags: + - v* + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name : Checkout repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + + - name: Create release on Github + run: | + gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/Dockerfile.dapper b/Dockerfile.dapper index fb909292..bc5297a0 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -4,7 +4,7 @@ ARG DAPPER_HOST_ARCH ENV ARCH $DAPPER_HOST_ARCH ARG CACHEBUST=1 RUN zypper -n up && \ - zypper -n in git docker vim curl wget + zypper -n in git docker vim curl wget gawk RUN rm -rf /go/src /go/pkg RUN if [ "${ARCH}" == "amd64" ]; then \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.54.0; \