mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2025-03-03 18:47:40 +08:00
Update publish.yml
This commit is contained in:
parent
578bc69498
commit
16ed9c28bf
1 changed files with 7 additions and 8 deletions
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
|
@ -20,20 +20,19 @@ jobs:
|
|||
tagPrefix: "alpine-"
|
||||
steps:
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date --utc +%Y-%m-%dT%H:%M:%SZ)"
|
||||
run: echo "curr_date=$(date --utc +%Y-%m-%dT%H:%M:%SZ)" >> $GITHUB_ENV
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to Quay
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: quay.io
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
- name: Login to ghcr.io
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
|
@ -56,7 +55,7 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
build-args: |
|
||||
VERSION=${{ github.event.release.tag_name }}
|
||||
BUILD=${{ steps.date.outputs.date }}
|
||||
BUILD=${{ env.curr_date }}
|
||||
|
||||
- name: Build and push main
|
||||
id: docker_build_main
|
||||
|
@ -70,7 +69,7 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
build-args: |
|
||||
VERSION=main
|
||||
BUILD=${{ steps.date.outputs.date }}
|
||||
BUILD=${{ env.curr_date }}
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
Loading…
Reference in a new issue