Update docker-image.yml

This commit is contained in:
Calcium-Ion 2023-10-30 11:57:40 -05:00 committed by GitHub
parent 79bf621289
commit 3906bf5052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,5 +14,19 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: calciumion/neko-api
- name: Build the Docker image
run: docker build . --file Dockerfile --tag calciumion/neko-api:$(date +%s)
uses: docker/build-push-action@v5.0.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}