Skip to content

Update dockerhub.yml #20

Update dockerhub.yml

Update dockerhub.yml #20

Workflow file for this run

name: "DockerHub Build and Push"
on:
push:
branches:
- "develop"
- "master"
- "release/*"
- "replace/tags"
jobs:
dockerhub-asn1_codec:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v3
with:
push: true
tags: usdotjpoode/asn1_codec:${{ github.ref_name | replace('/', '-') }}

Check failure on line 27 in .github/workflows/dockerhub.yml

View workflow run for this annotation

GitHub Actions / DockerHub Build and Push

Invalid workflow file

The workflow is not valid. .github/workflows/dockerhub.yml (Line: 27, Col: 17): Unexpected symbol: '|'. Located at position 17 within expression: github.ref_name | replace('/', '-')