Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LinMoQC authored Apr 10, 2024
1 parent df3dd9c commit 7dfca88
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Create timestamp
id: timestamp
run: echo "::set-output name=time::$(date +%s)"
- name: Build the Docker image
run: docker build . --file Dockerfile --tag memory_core:$(date +%s)
run: docker build . --file Dockerfile --tag memory_core:${{ steps.timestamp.outputs.time }}
- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push image to Docker Hub
run: docker push memory_core:$(date +%s)

run: docker push memory_core:${{ steps.timestamp.outputs.time }}

0 comments on commit 7dfca88

Please sign in to comment.