Skip to content

Commit

Permalink
Merge pull request #27 from TheThingsNetwork/remove-docker
Browse files Browse the repository at this point in the history
Remove Docker images from releases
  • Loading branch information
Aggelos Kolaitis authored Apr 13, 2021
2 parents 312108c + 7d90612 commit 877aec5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 30 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
11 changes: 0 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions Dockerfile

This file was deleted.

16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
```

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`.
Expand Down

0 comments on commit 877aec5

Please sign in to comment.