Skip to content

build

build #38

Workflow file for this run

---
name: build
on:
push:
branches: [main]
schedule:
# Daily rebuild so the image tracks current alpine (security fixes etc.)
- cron: '17 4 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Grab source
uses: actions/checkout@v4
- name: Log in to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/refenv/alpine-bash:latest