refactor: Update Docker image versions and artifact upload actions
This commit is contained in:
parent
0d29a68b9c
commit
18b6aaeb81
2 changed files with 9 additions and 9 deletions
16
.github/workflows/build-docker.yml
vendored
16
.github/workflows/build-docker.yml
vendored
|
|
@ -18,7 +18,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get Version
|
||||
run: |
|
||||
|
|
@ -28,19 +28,19 @@ jobs:
|
|||
run: echo $VERSION
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: Build Development
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./docker/development
|
||||
platforms: linux/amd64
|
||||
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
tags: yaoapp/yao:${{ env.VERSION }}-amd64-dev
|
||||
|
||||
- name: Build Development Arm64
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./docker/development
|
||||
platforms: linux/arm64
|
||||
|
|
@ -62,7 +62,7 @@ jobs:
|
|||
tags: yaoapp/yao:${{ env.VERSION }}-arm64-dev
|
||||
|
||||
- name: Build Production
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./docker/production
|
||||
platforms: linux/amd64
|
||||
|
|
@ -73,7 +73,7 @@ jobs:
|
|||
tags: yaoapp/yao:${{ env.VERSION }}-amd64
|
||||
|
||||
- name: Build Production Arm64
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./docker/production
|
||||
platforms: linux/arm64
|
||||
|
|
|
|||
2
.github/workflows/pr-receive.yml
vendored
2
.github/workflows/pr-receive.yml
vendored
|
|
@ -18,7 +18,7 @@ jobs:
|
|||
echo ${{ github.event.number }} > ./pr/NR
|
||||
echo ${{ github.event.pull_request.head.sha }} > ./pr/SHA
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: pr
|
||||
path: pr/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue