diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 681c062..f8cd752 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,11 +13,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@v2 - - name: Login to Docker - uses: azure/docker-login@v1 - with: - username: '${{ secrets.DOCKER_USERNAME }}' - password: '${{ secrets.DOCKER_PASSWORD }}' - name: Install Snapcraft run: sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft - name: Login to Snapcraft @@ -44,14 +39,10 @@ jobs: const tag = context.ref.slice('refs/rev/v'.length); const tagParts = tag.split('.'); require('fs').writeFileSync('/tmp/release-notes.md', `[Release notes](https://github.com/TheThingsNetwork/lorawan-stack-migrate/blob/${tag}/CHANGELOG.md#${tagParts[0]}${tagParts[1]}${tagParts[2]}---${{ steps.date.outputs.value }})`); - - name: Determine Goreleaser version - id: goreleaser_version - run: echo "::set-output name=value::$(cat go.mod | grep 'github.com/goreleaser/goreleaser v' | cut -d ' ' -f 2)" - name: Run Goreleaser uses: goreleaser/goreleaser-action@v2 with: - version: ${{ steps.goreleaser_version.outputs.value }} + version: 'v0.161.1' args: release --release-notes /tmp/release-notes.md env: - DOCKER_IMAGE: thethingsnetwork/lorawan-stack-migrate GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index e4a942c..dc46c11 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -92,14 +92,3 @@ brews: skip_upload: auto install: | bin.install "ttn-lw-migrate" - -dockers: - - goos: linux - goarch: amd64 - dockerfile: Dockerfile - binaries: - - ttn-lw-migrate - image_templates: - - '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack-migrate" }}:{{ .Major }}.{{ .Minor }}' - - '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack-migrate" }}:{{ .Version }}' - skip_push: auto diff --git a/CHANGELOG.md b/CHANGELOG.md index 56439b9..b22e5c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Removed +- Docker images are no longer built for releases. + ### Security Initial version diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 96c0e4c..0000000 --- a/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM alpine:3.12 - -COPY ttn-lw-migrate /bin/ttn-lw-migrate - -ENTRYPOINT ["ttn-lw-migrate"] diff --git a/README.md b/README.md index be778cd..19a63df 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ Migrate devices from other LoRaWAN Network Servers to [The Things Stack](https:/ Binaries are available on [GitHub](https://github.com/TheThingsNetwork/lorawan-stack-migrate/releases). -Docker images are available on [Docker Hub](https://hub.docker.com/r/TheThingsNetwork/lorawan-stack-migrate). - ## Support - [X] The Things Network Stack V2 @@ -208,11 +206,21 @@ It is also possible to use `go build`. ### Snapshot releases -Releases are created using [`goreleaser`](https://github.com/goreleaser/goreleaser). You can build a release snapshot from your local branch with `go run github.com/goreleaser/goreleaser --snapshot`. +Releases are created using [`goreleaser`](https://github.com/goreleaser/goreleaser). First, install GoReleaser: + +```bash +$ go install github.com/goreleaser/goreleaser@v0.161.1 +``` + +The command to build a release snapshot from your branch is: + +```bash +$ goreleaser --snapshot --rm-dist +``` > Note: You will at least need to have [`rpm`](http://rpm5.org/) and [`snapcraft`](https://snapcraft.io/) in your `PATH`. -This will compile binaries for all supported platforms, `deb`, `rpm` and Snapcraft packages, release archives in `dist`, as well as Docker images. +This will compile binaries for all supported platforms, `deb`, `rpm`, Snapcraft packages, as well as release archives in `dist`. > Note: The operating system and architecture represent the name of the directory in `dist` in which the binaries are placed. > For example, the binaries for Darwin x64 (macOS) will be located at `dist/darwin_amd64`.