Skip to content
Closed

Work #5972

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 0 additions & 141 deletions .github/workflows/docker-build.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/docker-hub-user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish user Docker Hub image

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
name: Build and push
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Check out
uses: actions/checkout@v4

- name: Write VERSION
run: echo "main-${GITHUB_SHA::7}" > VERSION

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: yeranshuanghua
password: ${{ secrets.DOCKER_HUB }}

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
yeranshuanghua/shuanghua-api:latest
yeranshuanghua/shuanghua-api:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
170 changes: 0 additions & 170 deletions .github/workflows/docker-image-branch.yml

This file was deleted.

Loading
Loading