Skip to content

docker-push-dockerhub #3

docker-push-dockerhub

docker-push-dockerhub #3

Workflow file for this run

name: docker-push-dockerhub
on:
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to docker.io
uses: docker/[email protected]
with:
registry: docker.io
username: ${{ secrets.DOCKER_NAME }}
password: ${{ secrets.DOCKER_PAT }}
- name: Get current date
id: date
run: echo "::set-output name=date::$(date -u '+%F-%T')"
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
build-args: |
COMMITHASH=${{ github.sha }}
BUILDTIME=${{ steps.date.outputs.date }}
tags: docker.io/${{ secrets.DOCKER_NAME }}/moksha-mint:latest