Skip to content

Commit

Permalink
fix docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
si458 committed May 5, 2024
1 parent 483c2ab commit 03571c8
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,35 @@ jobs:
contents: read
packages: write
steps:
-
name: Docker meta
id: docker_meta
uses: docker/metadata-action@v1
with:
images: si458/zpush
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
- name: Check out the repo
uses: actions/checkout@v4

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

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ steps.docker_meta.outputs.tags }}
-
name: Image digest

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 03571c8

Please sign in to comment.