decrease total size of container by removing builddeps. and commit ch… #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
#schedule: | |
# - cron: "21 21 * * *" | |
push: | |
branches: ["main"] | |
paths: | |
- Containerfile | |
- .github/** | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: "fedora-atomic-hyprland" | |
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} | |
REGISTRY_USER: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ github.token }} | |
jobs: | |
podman-build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- name: Build container image | |
uses: redhat-actions/[email protected] | |
with: | |
context: "." | |
containerfiles: Containerfile | |
image: ${{ env.IMAGE_NAME }} | |
layers: false | |
oci: true | |
- name: Push to ghcr.io | |
uses: redhat-actions/[email protected] | |
with: | |
image: ${{ env.IMAGE_NAME }} | |
tags: "latest" | |
registry: ${{ env.IMAGE_REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} |