Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bestruirui authored Feb 17, 2024
1 parent fe582ea commit 48d6cc8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 设置时区
uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Shanghai"
- name: 登录
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: 获取时间
id: date
run: echo "::set-output name=date::$(date +'%y%m%d')"
- name: 构建推送
uses: docker/build-push-action@v3
with:
context: .
push: true
platforms: linux/amd64
tags: |
bestrui/wxpush:latest
bestrui/wxpush:${{ steps.date.outputs.date }}

0 comments on commit 48d6cc8

Please sign in to comment.