30 lines
509 B
YAML
30 lines
509 B
YAML
---
|
|
name: Docker Image CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out files
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install malware
|
|
run: |
|
|
apt-get install curl
|
|
|
|
- name: Install Docker
|
|
run: |
|
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
|
sh get-docker.sh
|
|
|
|
- name: Docker moment
|
|
run: docker run hello-world
|