Skip to content

db: beautify code

db: beautify code #12

Workflow file for this run

name: Docker
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Compute image tag name
run: echo "IMAGE_TAG=$(date -u '+%Y%m%d-%H%M%S')" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Dockerhub
uses: docker/login-action@v2
with:
registry: registry.hub.docker.com
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64
push: true
build-args: |
GITHUB_SHA=${{ github.sha }}
tags: |
registry.hub.docker.com/wuhan005/elaina:${{ env.IMAGE_TAG }}
registry.hub.docker.com/wuhan005/elaina:latest