Skip to content

Commit

Permalink
ci: Add test of README example
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink committed Nov 28, 2023
1 parent e8af259 commit f844da3
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test-readme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test Readme Example

on: [workflow_dispatch]

jobs:
build-extract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker Image
uses: docker/build-push-action@v5
with:
load: true
tags: my-example-image:latest
- uses: shrink/actions-docker-extract@v3
id: extract
with:
image: my-example-image:latest
path: /app/.
- name: Upload Dist
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract.outputs.destination }}
name: dist
login-pull-extract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- uses: shrink/actions-docker-extract@v3
id: extract
with:
image: ghcr.io/${{ github.repository }}:latest
path: /app/.
- name: Upload Dist
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract.outputs.destination }}
name: dist

0 comments on commit f844da3

Please sign in to comment.