Skip to content

Commit 9d14039

Browse files
authored
Update release workflow (#41)
* Update workflow release, push image to docker-hub.
1 parent 7e9ff7a commit 9d14039

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,33 @@ on:
66

77
jobs:
88
build-and-publish:
9-
name: Build and Push Docker Image to IOTA Registry
9+
name: Build and Push Docker Image to iotaledger
1010
runs-on: ubuntu-latest
11+
environment: release
1112

1213
steps:
1314
# Checkout the repository
1415
- name: Checkout Code
15-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1617

17-
# Log in to the Docker Registry
18-
- name: Log in to Docker Registry
19-
uses: docker/login-action@v2
18+
- name: Login to DockerHub
19+
uses: docker/login-action@v3
2020
with:
2121
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
2222
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
23-
registry: ${{ secrets.DOCKER_REGISTRY_URL }}
2423

2524
# Build the Docker image using Docker Compose with no cache
2625
- name: Build Docker Image
2726
run: docker compose build --no-cache
2827

2928
# Tag the Docker image for the registry
30-
- name: Tag Docker Image
29+
- name: Tag built image
3130
run: |
32-
docker tag rebased-stardust-indexer:latest docker-registry.iota.org/rebased-stardust-indexer:${{ github.ref_name }}
31+
docker tag rebased-stardust-indexer:latest iotaledger/rebased-stardust-indexer:latest
32+
docker tag rebased-stardust-indexer:latest iotaledger/rebased-stardust-indexer:${{ github.ref_name }}
3333
3434
# Push the Docker image to the registry
35-
- name: Push Docker Image
35+
- name: Push image
3636
run: |
37-
docker push docker-registry.iota.org/rebased-stardust-indexer:${{ github.ref_name }}
37+
docker push iotaledger/rebased-stardust-indexer:latest
38+
docker push iotaledger/rebased-stardust-indexer:${{ github.ref_name }}

0 commit comments

Comments
 (0)