Skip to content

chore: use github evn #9

chore: use github evn

chore: use github evn #9

Workflow file for this run

name: main network docker image build
on:
push:
tags:
- "v*"
- "!v*-mainnet"
- "!v*-testnet"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Remove v prefix
id: remove_prefix
env:
TAG_NAME: ${{ steps.extract_tag.outputs.TAG_NAME }}
run: |
echo "CLEANED_TAG_NAME=${TAG_NAME#v}" >> $GITHUB_ENV
echo Version: $CLEANED_TAG_NAME
- name: Build and push
uses: docker/build-push-action@v6
with:
build-args: |
VERSION=${{ github.ref_name }}
file: ./Dockerfile.dev.buildx
platforms: linux/amd64,linux/arm64
push: true
tags: confluxchain/conflux-rust:${{ CLEANED_TAG_NAME }},confluxchain/conflux-rust:latest

Check failure on line 40 in .github/workflows/dev.yml

View workflow run for this annotation

GitHub Actions / main network docker image build

Invalid workflow file

The workflow is not valid. .github/workflows/dev.yml (Line: 40, Col: 17): Unrecognized named-value: 'CLEANED_TAG_NAME'. Located at position 1 within expression: CLEANED_TAG_NAME