Skip to content

Push DockerHub CI

Push DockerHub CI #9

Workflow file for this run

name: Push DockerHub CI
on:
release:
types: [published]
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
vibpsb/i-adhore
tags: |
type=ref,event=tag
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push to Docker Hub
uses: docker/build-push-action@v2
with:
push: false
platforms: linux/arm64,linux/amd64
context: .
tags: |
vibpsb/i-adhore:latest
vibpsb/i-adhore:${{ steps.meta.outputs.tags }}