mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-11 12:57:41 -05:00
29 lines
883 B
YAML
29 lines
883 B
YAML
name: Test File Extraction
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
root-file:
|
|
runs-on: ubuntu-latest
|
|
name: Extract Example File From Root of Built Image
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: docker build -t example:${{ github.sha }} ./.github/tests
|
|
- uses: ./
|
|
id: extract
|
|
with:
|
|
image: example:${{ github.sha }}
|
|
path: /files/001.txt
|
|
- run: test -e ${{ steps.extract.outputs.destination }}/001.txt || exit 1
|
|
nested-file:
|
|
runs-on: ubuntu-latest
|
|
name: Extract Nexted Example File From Built Image
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: docker build -t example:${{ github.sha }} ./.github/tests
|
|
- uses: ./
|
|
id: extract
|
|
with:
|
|
image: example:${{ github.sha }}
|
|
path: /files/y/006.txt
|
|
- run: test -e ${{ steps.extract.outputs.destination }}/006.txt || exit 1
|