Skip to content

Commit

Permalink
add action for build
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed Aug 26, 2024
1 parent a57e94b commit e7f7581
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test and Build wasm-oidc-plugin

on:
push:
branches:
- main
- add-action

jobs:

ghcr-image:
name: Build and push GHCR image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to GHCR
run: |
docker build -t ghcr.io/pacoxu/slides-crawl:latest
docker push ghcr.io/pacoxu/slides-crawl:latest

0 comments on commit e7f7581

Please sign in to comment.