Container Actions #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Container Actions | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| shell-dockerfile: | |
| runs-on: ubuntu-latest | |
| name: Shell Container Action (dynamic Dockerfile build) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0 | |
| with: | |
| submodules: true | |
| - name: Run container action | |
| uses: ./06-authoring-actions/container-actions/shell-container-action | |
| id: hello | |
| with: | |
| who-to-greet: "from a container github action 👋" | |
| - name: Get the output greeting | |
| run: echo "The greeting was ${{ steps.hello.outputs.greeting }}" | |
| shell-public-container-image: | |
| runs-on: ubuntu-latest | |
| name: Shell Container Action (public container image) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0 | |
| - name: Run container action | |
| uses: ./06-authoring-actions/container-actions/shell-container-action-prebuilt | |
| id: hello | |
| with: | |
| who-to-greet: "from a container github action 👋" | |
| - name: Get the output greeting | |
| run: echo "The greeting was ${{ steps.hello.outputs.greeting }}" | |
| python-dockerfile: | |
| runs-on: ubuntu-latest | |
| name: Python Container Action (dynamic Dockerfile build) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0 | |
| - name: Run container action | |
| uses: ./06-authoring-actions/container-actions/python-container-action | |
| id: hello | |
| with: | |
| who-to-greet: "from a container github action 👋" | |
| - name: Get the output time | |
| run: echo "The time was ${{ steps.hello.outputs.greeting }}" |