Skip to content

misc:salt更新到2.75 #66

misc:salt更新到2.75

misc:salt更新到2.75 #66

Workflow file for this run

name: Buildx Docker image
on:
push:
branches:
- "master"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: false
default: "warning"
jobs:
buildx:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "::set-output name=today::$(date +'%Y-%m-%d')"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Read Docker Image Identifiers
run: echo "LOWER_ACTOR=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/mihoyo-bbs:latest
${{ secrets.DOCKERHUB_USERNAME }}/mihoyo-bbs:${{ steps.date.outputs.today }}
ghcr.io/${{ env.LOWER_ACTOR }}/mihoyo-bbs:latest
ghcr.io/${{ env.LOWER_ACTOR }}/mihoyo-bbs:${{ steps.date.outputs.today }}