Skip to content

Commit

Permalink
Merge pull request #20 from cheng6563/main
Browse files Browse the repository at this point in the history
构建镜像并传到 ghcr.io
  • Loading branch information
maoyutao committed Nov 22, 2022
2 parents 22dba8b + 7c9b2a6 commit c350ae4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: build and push
run: docker build . -t "ghcr.io/${{ github.actor }}/wxcloudrun-wxcomponent" && docker push "ghcr.io/${{ github.actor }}/wxcloudrun-wxcomponent"

0 comments on commit c350ae4

Please sign in to comment.