Skip to content

Deploy to Dockerhub on release #61

Deploy to Dockerhub on release

Deploy to Dockerhub on release #61

on:
release:
types:
- created
workflow_dispatch:
inputs: null
name: Deploy to Dockerhub on release
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push to DockerHub
uses: docker/build-push-action@v5
with:
push: true
context: '{{defaultContext}}:deployment/Dockerhub'
tags:
- databio/pephub:latest

Check failure on line 30 in .github/workflows/deploy-dockerhub.yml

View workflow run for this annotation

GitHub Actions / Deploy to Dockerhub on release

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-dockerhub.yml (Line: 30, Col: 11): A sequence was not expected
- databio/pephub:${{github.ref_name}}