Skip to content

Commit

Permalink
upd build-docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Wei committed Oct 17, 2020
1 parent 269026d commit 05607a0
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,27 @@ on:
jobs:
push_to_registries:
runs-on: ubuntu-latest
name: Push Docker image to github packages
name: Push Docker image to github container registry
steps:
- name: Check out the repo
-
name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver: docker

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

- name: Build and push
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
Expand All @@ -32,3 +35,6 @@ jobs:
tags: |
x-wei/xwei-pelican:latest
ghcr.io/x-wei/xwei-pelican:latest
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 05607a0

Please sign in to comment.