Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

更新自述文件,劣化workflows功能 #5

更新自述文件,劣化workflows功能

更新自述文件,劣化workflows功能 #5

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/arm64,linux/amd64
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/surveyking:latest
${{ secrets.DOCKERHUB_USERNAME }}/surveyking:1.6.0
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ secrets.DOCKERHUB_USERNAME }}/surveyking
readme-filepath: ./README.md
short-description: ${{ github.event.repository.description }}