Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,33 @@ on:

jobs:
build-and-publish:
name: Build and Push Docker Image to IOTA Registry
name: Build and Push Docker Image to iotaledger
runs-on: ubuntu-latest
environment: release

steps:
# Checkout the repository
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Log in to the Docker Registry
- name: Log in to Docker Registry
uses: docker/login-action@v2
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
registry: ${{ secrets.DOCKER_REGISTRY_URL }}

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

# Tag the Docker image for the registry
- name: Tag Docker Image
- name: Tag built image
run: |
docker tag rebased-stardust-indexer:latest docker-registry.iota.org/rebased-stardust-indexer:${{ github.ref_name }}
docker tag rebased-stardust-indexer:latest iotaledger/stardust-indexer:latest
docker tag rebased-stardust-indexer:latest iotaledger/stardust-indexer:${{ github.sha }}

# Push the Docker image to the registry
- name: Push Docker Image
- name: Push image
run: |
docker push docker-registry.iota.org/rebased-stardust-indexer:${{ github.ref_name }}
docker push iotaledger/stardust-indexer:latest
docker push iotaledger/stardust-indexer:${{ github.sha }}
Loading