Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 8532c63

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feat/only-witnesses-same-epoch
2 parents 12a321b + de71160 commit 8532c63

File tree

3 files changed

+57
-5
lines changed

3 files changed

+57
-5
lines changed

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
docker:
9+
name: Release Docker
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out code into the Go module directory
13+
uses: actions/checkout@v4
14+
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v3
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
- name: Docker meta
22+
id: meta
23+
uses: docker/metadata-action@v5
24+
with:
25+
images: iotaledger/iota-core
26+
tags: |
27+
type=semver,pattern={{version}}
28+
type=semver,pattern={{major}}.{{minor}}
29+
type=semver,pattern={{major}}
30+
type=match,pattern=v(\d+.\d+),suffix=-alpha,group=1,enable=${{ contains(github.ref, '-alpha') }}
31+
type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') }}
32+
type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') }}
33+
34+
- name: Login to DockerHub
35+
uses: docker/login-action@v3
36+
with:
37+
username: ${{ secrets.IOTALEDGER_DOCKER_USERNAME }}
38+
password: ${{ secrets.IOTALEDGER_DOCKER_PASSWORD }}
39+
40+
- name: Build and push to Dockerhub
41+
uses: docker/build-push-action@v5
42+
with:
43+
file: ./Dockerfile
44+
platforms: linux/amd64,linux/arm64
45+
push: true
46+
tags: ${{ steps.meta.outputs.tags }}

Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@ LABEL org.label-schema.name="iotaledger/iota-core"
88
LABEL org.label-schema.schema-version="1.0"
99
LABEL org.label-schema.vcs-url="https://github.com/iotaledger/iota-core"
1010

11-
RUN mkdir /scratch /app
11+
# Ensure ca-certificates are up to date
12+
RUN update-ca-certificates
1213

14+
# Set the current Working Directory inside the container
15+
RUN mkdir /scratch
1316
WORKDIR /scratch
1417

15-
COPY . .
18+
# Prepare the folder where we are putting all the files
19+
RUN mkdir /app
1620

17-
# Ensure ca-certificates are up to date
18-
RUN update-ca-certificates
21+
WORKDIR /scratch
22+
23+
# Copy everything from the current directory to the PWD(Present Working Directory) inside the container
24+
COPY . .
1925

2026
# Download go modules
2127
RUN go mod download

components/app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
Name = "iota-core"
2626

2727
// Version of the app.
28-
Version = "0.1.0"
28+
Version = "1.0.0-alpha.1"
2929
)
3030

3131
func App() *app.App {

0 commit comments

Comments
 (0)