Skip to content

Adjust port in test #25

Adjust port in test

Adjust port in test #25

Workflow file for this run

name: docker-build-test
on:
push:
branches:
- "**"
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
-
name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Determine Docker tags
id: vars
run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "TAGS=ghcr.io/developer-dao/rpc:latest,ghcr.io/developer-dao/rpc:${{ github.sha }}" >> $GITHUB_ENV
else
BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's|refs/heads/||' | tr '/' '-' | tr '[:upper:]' '[:lower:]')
echo "TAGS=ghcr.io/developer-dao/rpc:${BRANCH_NAME}-${{ github.sha }}" >> $GITHUB_ENV
fi
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
load: false
tags: ${{ env.TAGS }}