Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng6563 committed Nov 22, 2022
1 parent 22dba8b commit 7c9b2a6
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 7c9b2a6

Please sign in to comment.