Skip to content

test

test #57

Workflow file for this run

name: build
on:
push:
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write
steps:
- 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: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: Build and push
if: ${{ github.event_name == 'push' }}
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/dream10201/115docker:dev,docker.io/xiuxiu10201/115:dev
- name: Release and push
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/dream10201/115docker:latest,docker.io/xiuxiu10201/115:latest