Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Winspain authored Nov 26, 2022
1 parent 941f049 commit 134e212
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

tags:
- v*

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -27,10 +25,10 @@ jobs:

- name: Get current date
id: date
run: echo "::set-output name=today::$(date +'%Y-%m-%d_%H-%M')"
run: echo "{today}={$(date +'%Y%m%d%H%M')}" >> $GITHUB_OUTPUT

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PWD }}
Expand Down

0 comments on commit 134e212

Please sign in to comment.