Skip to content

Deploy to Dockerhub on release #67

Deploy to Dockerhub on release

Deploy to Dockerhub on release #67

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@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push to DockerHub
uses: docker/build-push-action@v5
with:
push: true
file: deployment/dockerhub/Dockerfile
tags:
- databio/pephub:latest

Check failure on line 33 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: 33, Col: 13): A sequence was not expected
- databio/pephub:${{ github.ref_name }}