Skip to content

Simplify image test script #4

Simplify image test script

Simplify image test script #4

Workflow file for this run

name: Build Images
on: [push]
jobs:
build:
name: Build image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "::set-output name=date::$(date -u +'%Y-%m-%dT%H:%m:%SZ')"
- name: Buildah Action
uses: redhat-actions/buildah-build@v2
with:
image: docker.io/groovytron/python
tags: 3.12 3.12-${{ github.sha }}
containerfiles: |
./3.12/Dockerfile
build-args: |
BUILD_DATE=${{ steps.date.outputs.date }}
VCS_REF=${{ github.sha }}
POETRY_VERSION=1.8.4
- name: Test the image
run: |
podman run \
-it \
--volume $(pwd):/var/www/app:rw \
--user dev \
docker.io/groovytron/python:3.12 \
bash ./test.sh