Skip to content

build an image from the generated dockerfile #1

build an image from the generated dockerfile

build an image from the generated dockerfile #1

Workflow file for this run

name: build_packages
on:
push:
# branches: [ main ]
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
-
name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install ghrocker
run: |
pip install .
- name: Generate Dockerfile
run: |
ghrocker --dockerfile-only .
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build estimator
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.ghrocker
load: true
push: true
tags: ghcr.io/tfoote/ghrocker/ghrocker:baseline
cache-from: type=gha
cache-to: type=gha,mode=max