Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
f9aaf29b
Unverified
Commit
f9aaf29b
authored
Feb 23, 2021
by
Ivan Vandot
Committed by
GitHub
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docker arm image support (#1315)
parent
512230d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
8 deletions
+99
-8
release.yaml
.github/workflows/release.yaml
+11
-1
.goreleaser.yml
.goreleaser.yml
+88
-7
No files found.
.github/workflows/release.yaml
View file @
f9aaf29b
...
@@ -12,11 +12,21 @@ jobs:
...
@@ -12,11 +12,21 @@ jobs:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
Setup Go
-
name
:
Setup Go
uses
:
actions/setup-go@v
1
uses
:
actions/setup-go@v
2
with
:
with
:
go-version
:
1.15
go-version
:
1.15
-
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v2
uses
:
actions/checkout@v2
-
name
:
Docker Login
env
:
DOCKER_USERNAME
:
${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD
:
${{ secrets.DOCKER_PASSWORD }}
run
:
|
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v1
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Run GoReleaser
-
name
:
Run GoReleaser
uses
:
goreleaser/goreleaser-action@v2
uses
:
goreleaser/goreleaser-action@v2
with
:
with
:
...
...
.goreleaser.yml
View file @
f9aaf29b
project_name
:
bee
project_name
:
bee
builds
:
builds
:
-
main
:
./cmd/bee
-
id
:
linux
main
:
./cmd/bee
binary
:
bee
binary
:
bee
flags
:
flags
:
-
-v
-
-v
...
@@ -12,7 +13,6 @@ builds:
...
@@ -12,7 +13,6 @@ builds:
-
CGO_ENABLED=0
-
CGO_ENABLED=0
goos
:
goos
:
-
linux
-
linux
-
windows
goarch
:
goarch
:
-
amd64
-
amd64
-
386
-
386
...
@@ -20,11 +20,21 @@ builds:
...
@@ -20,11 +20,21 @@ builds:
-
arm
-
arm
goarm
:
goarm
:
-
7
-
7
ignore
:
-
id
:
windows
-
goos
:
windows
main
:
./cmd/bee
goarch
:
arm64
binary
:
bee
-
goos
:
windows
flags
:
goarch
:
arm
-
-v
-
-trimpath
ldflags
:
-
-s -w -X github.com/ethersphere/bee.version={{.Version}} -X github.com/ethersphere/bee.commit={{.ShortCommit}}
env
:
-
CGO_ENABLED=0
goos
:
-
windows
goarch
:
-
amd64
-
386
-
id
:
darwin
-
id
:
darwin
main
:
./cmd/bee
main
:
./cmd/bee
binary
:
bee
binary
:
bee
...
@@ -168,3 +178,74 @@ brews:
...
@@ -168,3 +178,74 @@ brews:
<string>#{var}/log/swarm-bee/bee.log</string>
<string>#{var}/log/swarm-bee/bee.log</string>
</dict>
</dict>
</plist>
</plist>
dockers
:
-
image_templates
:
-
"
ethersphere/bee:{{
.Version
}}-amd64"
use_buildx
:
true
ids
:
-
linux
goarch
:
amd64
dockerfile
:
Dockerfile.goreleaser
build_flag_templates
:
-
"
--platform=linux/amd64"
-
"
--pull"
-
"
--label=org.opencontainers.image.created={{.Date}}"
-
"
--label=org.opencontainers.image.title={{.ProjectName}}"
-
"
--label=org.opencontainers.image.revision={{.FullCommit}}"
-
"
--label=org.opencontainers.image.version={{.Version}}"
-
image_templates
:
-
"
ethersphere/bee:{{
.Version
}}-armv7"
use_buildx
:
true
ids
:
-
linux
goarch
:
arm
goarm
:
7
dockerfile
:
Dockerfile.goreleaser
build_flag_templates
:
-
"
--platform=linux/arm/v7"
-
"
--pull"
-
"
--label=org.opencontainers.image.created={{.Date}}"
-
"
--label=org.opencontainers.image.title={{.ProjectName}}"
-
"
--label=org.opencontainers.image.revision={{.FullCommit}}"
-
"
--label=org.opencontainers.image.version={{.Version}}"
-
image_templates
:
-
"
ethersphere/bee:{{
.Version
}}-arm64v8"
use_buildx
:
true
ids
:
-
linux
goarch
:
arm64
dockerfile
:
Dockerfile.goreleaser
build_flag_templates
:
-
"
--platform=linux/arm64/v8"
-
"
--pull"
-
"
--label=org.opencontainers.image.created={{.Date}}"
-
"
--label=org.opencontainers.image.title={{.ProjectName}}"
-
"
--label=org.opencontainers.image.revision={{.FullCommit}}"
-
"
--label=org.opencontainers.image.version={{.Version}}"
docker_manifests
:
-
name_template
:
ethersphere/bee:{{ .Major }}
image_templates
:
-
ethersphere/bee:{{ .Version }}-amd64
-
ethersphere/bee:{{ .Version }}-armv7
-
ethersphere/bee:{{ .Version }}-arm64v8
-
name_template
:
ethersphere/bee:{{ .Major }}.{{ .Minor }}
image_templates
:
-
ethersphere/bee:{{ .Version }}-amd64
-
ethersphere/bee:{{ .Version }}-armv7
-
ethersphere/bee:{{ .Version }}-arm64v8
-
name_template
:
ethersphere/bee:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
image_templates
:
-
ethersphere/bee:{{ .Version }}-amd64
-
ethersphere/bee:{{ .Version }}-armv7
-
ethersphere/bee:{{ .Version }}-arm64v8
-
name_template
:
ethersphere/bee:latest
image_templates
:
-
ethersphere/bee:{{ .Version }}-amd64
-
ethersphere/bee:{{ .Version }}-armv7
-
ethersphere/bee:{{ .Version }}-arm64v8
-
name_template
:
ethersphere/bee:beta
image_templates
:
-
ethersphere/bee:{{ .Version }}-amd64
-
ethersphere/bee:{{ .Version }}-armv7
-
ethersphere/bee:{{ .Version }}-arm64v8
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment