File tree Expand file tree Collapse file tree 4 files changed +22
-23
lines changed Expand file tree Collapse file tree 4 files changed +22
-23
lines changed Original file line number Diff line number Diff line change 22
22
uses : docker/login-action@v3
23
23
with :
24
24
registry : ghcr.io
25
- username : ${{ github.actor }}
26
- password : ${{ secrets.GITHUB_TOKEN }}
25
+ username : ${{ secrets.GHCR_USER }}
26
+ password : ${{ secrets.GHCR_TOKEN }}
27
27
28
28
- name : Build and push Docker image
29
29
run : |
Original file line number Diff line number Diff line change @@ -25,29 +25,28 @@ jobs:
25
25
exit 1
26
26
fi
27
27
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
34
32
35
- - name : Login to DockerHub
36
- uses : docker/login-action@v1
33
+ - name : Login to GHCR
34
+ uses : docker/login-action@v3
37
35
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 }}
40
39
41
- - name : Publish Docker image
40
+ - name : Build and push Docker image
42
41
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
45
46
46
- - name : Create GitHub Release
47
- uses : " marvinpinto /action-automatic-releases@latest "
47
+ - name : Create release
48
+ uses : softprops /action-gh-release@v2
48
49
with :
49
- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
50
- prerelease : false
51
50
files : |
52
51
docs/schema.json
53
52
fablo.sh
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ echo " FABLO_HOME: $FABLO_HOME"
15
15
echo " FABLO_VERSION: $FABLO_VERSION "
16
16
echo " VERSION_DETAILS: $VERSION_DETAILS "
17
17
18
- IMAGE_BASE_NAME=" ghcr.io/hyperledger-labs /fablo:$FABLO_VERSION "
18
+ IMAGE_BASE_NAME=" ghcr.io/fablo-io /fablo:$FABLO_VERSION "
19
19
20
20
if [ " $( command -v nvm) " != " nvm" ] && [ -f ~ /.nvm/nvm.sh ]; then
21
21
set +e
@@ -37,13 +37,13 @@ if [ "${1:-''}" = "--push" ]; then
37
37
docker buildx build \
38
38
--build-arg VERSION_DETAILS=" $VERSION_DETAILS " \
39
39
--platform linux/amd64,linux/arm64 \
40
- --tag " ghcr.io/hyperledger-labs /fablo:$FABLO_VERSION " \
40
+ --tag " ghcr.io/fablo-io /fablo:$FABLO_VERSION " \
41
41
--push \
42
42
" $FABLO_HOME "
43
43
else
44
44
docker build \
45
45
--build-arg VERSION_DETAILS=" $VERSION_DETAILS " \
46
46
--tag " $IMAGE_BASE_NAME " " $FABLO_HOME "
47
47
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 "
49
49
fi
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
FABLO_VERSION=2.0.0
6
- FABLO_IMAGE_NAME=" ghcr.io/hyperledger-labs /fablo"
6
+ FABLO_IMAGE_NAME=" ghcr.io/fablo-io /fablo"
7
7
FABLO_IMAGE=" $FABLO_IMAGE_NAME :$FABLO_VERSION "
8
8
9
9
COMMAND=" $1 "
You can’t perform that action at this time.
0 commit comments