Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dream10201 committed Nov 22, 2024
1 parent ebeac45 commit 181f05e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@ on:
jobs:
docker:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write
steps:
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
- 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
- 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
- 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: Build and push
- 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
tags: ghcr.io/dream10201/115docker:latest,docker.io/xiuxiu10201/115:latest

0 comments on commit 181f05e

Please sign in to comment.