Skip to content

Update docker-image.yml #12

Update docker-image.yml

Update docker-image.yml #12

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: Get the current date
id: date
run: echo "::set-output name=date::$(date +%s)"
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build the Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: negin513/neon-app_latest
#run: docker build . --file Dockerfile --no-cache -tag negin513/neon-app:$(date +%s)