31 lines
687 B
YAML
31 lines
687 B
YAML
name: Build Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: slimbook-ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
fetch-depth: 0
|
|
|
|
- name: Install Podman
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y podman
|
|
|
|
- name: Build container image with Podman
|
|
run: |
|
|
podman build -t dailytrends:latest .
|
|
|
|
- name: Test container image
|
|
run: |
|
|
podman run --rm dailytrends:latest node --version |