Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <[email protected]>
  • Loading branch information
Dup4 committed Dec 7, 2023
1 parent e1543ac commit 371d46d
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Tag
run: |
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: all
Expand All @@ -59,7 +59,7 @@ jobs:

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

- name: Inspect builder
run: |
Expand All @@ -70,25 +70,32 @@ jobs:
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to ALiYun Shanghai Container Registry
uses: docker/login-action@v3
with:
registry: registry.cn-shanghai.aliyuncs.com
username: ${{ secrets.ALIYUN_REGISTRY_USERNAME }}
password: ${{ secrets.ALIYUN_REGISTRY_TOKEN }}

- id: github_repo_owner_string
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.repository_owner }}

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./
file: ./docker/Dockerfile
Expand All @@ -97,3 +104,4 @@ jobs:
tags: |
docker.io/${{ secrets.DOCKERHUB_USERNAME }}/domprinter:${{ env.DOCKER_TAG }}
ghcr.io/${{ steps.github_repo_owner_string.outputs.lowercase }}/domprinter:${{ env.DOCKER_TAG }}
registry.cn-shanghai.aliyuncs.com/dup4/${{ env.DOCKER_TAG }}:${{ env.DOCKER_TAG }}

0 comments on commit 371d46d

Please sign in to comment.