Skip to content

Commit 9321b92

Browse files
authored
Merge branch 'main' into set-version-2.0.0
Signed-off-by: Jakub Dzikowski <jakub.t.dzikowski@gmail.com>
2 parents d07742e + 8ebd31c commit 9321b92

File tree

4 files changed

+22
-23
lines changed

4 files changed

+22
-23
lines changed

.github/workflows/publish-docker-on-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
uses: docker/login-action@v3
2323
with:
2424
registry: ghcr.io
25-
username: ${{ github.actor }}
26-
password: ${{ secrets.GITHUB_TOKEN }}
25+
username: ${{ secrets.GHCR_USER }}
26+
password: ${{ secrets.GHCR_TOKEN }}
2727

2828
- name: Build and push Docker image
2929
run: |

.github/workflows/release-on-tag.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,28 @@ jobs:
2525
exit 1
2626
fi
2727
28-
- name: Build Fablo
29-
run: |
30-
shellcheck --version
31-
yamllint -v
32-
npm install
33-
./fablo-build.sh
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
with:
31+
driver: docker-container
3432

35-
- name: Login to DockerHub
36-
uses: docker/login-action@v1
33+
- name: Login to GHCR
34+
uses: docker/login-action@v3
3735
with:
38-
username: ${{ secrets.DOCKERHUB_LOGIN }}
39-
password: ${{ secrets.DOCKERHUB_TOKEN }}
36+
registry: ghcr.io
37+
username: ${{ secrets.GHCR_USER }}
38+
password: ${{ secrets.GHCR_TOKEN }}
4039

41-
- name: Publish Docker image
40+
- name: Build and push Docker image
4241
run: |
43-
FABLO_VERSION=$(jq -r '.version' <"$GITHUB_WORKSPACE/package.json")
44-
docker push ghcr.io/hyperledger-labs/fablo:"$FABLO_VERSION"
42+
shellcheck --version
43+
yamllint -v
44+
npm install
45+
./fablo-build.sh --push
4546
46-
- name: Create GitHub Release
47-
uses: "marvinpinto/action-automatic-releases@latest"
47+
- name: Create release
48+
uses: softprops/action-gh-release@v2
4849
with:
49-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
50-
prerelease: false
5150
files: |
5251
docs/schema.json
5352
fablo.sh

fablo-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ echo " FABLO_HOME: $FABLO_HOME"
1515
echo " FABLO_VERSION: $FABLO_VERSION"
1616
echo " VERSION_DETAILS: $VERSION_DETAILS"
1717

18-
IMAGE_BASE_NAME="ghcr.io/hyperledger-labs/fablo:$FABLO_VERSION"
18+
IMAGE_BASE_NAME="ghcr.io/fablo-io/fablo:$FABLO_VERSION"
1919

2020
if [ "$(command -v nvm)" != "nvm" ] && [ -f ~/.nvm/nvm.sh ]; then
2121
set +e
@@ -37,13 +37,13 @@ if [ "${1:-''}" = "--push" ]; then
3737
docker buildx build \
3838
--build-arg VERSION_DETAILS="$VERSION_DETAILS" \
3939
--platform linux/amd64,linux/arm64 \
40-
--tag "ghcr.io/hyperledger-labs/fablo:$FABLO_VERSION" \
40+
--tag "ghcr.io/fablo-io/fablo:$FABLO_VERSION" \
4141
--push \
4242
"$FABLO_HOME"
4343
else
4444
docker build \
4545
--build-arg VERSION_DETAILS="$VERSION_DETAILS" \
4646
--tag "$IMAGE_BASE_NAME" "$FABLO_HOME"
4747

48-
docker tag "$IMAGE_BASE_NAME" "ghcr.io/hyperledger-labs/fablo:$FABLO_VERSION"
48+
docker tag "$IMAGE_BASE_NAME" "ghcr.io/fablo-io/fablo:$FABLO_VERSION"
4949
fi

fablo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
FABLO_VERSION=2.0.0
6-
FABLO_IMAGE_NAME="ghcr.io/hyperledger-labs/fablo"
6+
FABLO_IMAGE_NAME="ghcr.io/fablo-io/fablo"
77
FABLO_IMAGE="$FABLO_IMAGE_NAME:$FABLO_VERSION"
88

99
COMMAND="$1"

0 commit comments

Comments
 (0)