Update alpine Docker tag to v3.19.1 #148
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Test docker-cp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: shellcheck | |
uses: reviewdog/action-shellcheck@v1 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Build | |
uses: docker/build-push-action@v5 | |
id: docker-build | |
with: | |
context: . | |
load: true | |
push: false | |
tags: user/app:latest | |
- name: Run | |
uses: tj-actions/docker-run@v2 | |
id: docker-run | |
with: | |
image: user/app:latest | |
name: test-app | |
args: bash -c 'ls && sleep 2' | |
- name: Copy from container to host | |
uses: ./ | |
with: | |
container: ${{ steps.docker-run.outputs.container-id }} | |
source: /entrypoint.sh | |
destination: entrypoint-new.sh | |
- name: Display contents of entrypoint-new.sh | |
run: cat entrypoint-new.sh |