diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 801642f..1e3f390 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,9 @@ on: - main schedule: - cron: '20 20 * * *' # 8:20pm everyday + push: + branches: + - main env: IMAGE_NAME: base IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} @@ -24,8 +27,8 @@ jobs: steps: # Checkout push-to-registry action GitHub repository - name: Checkout Push to Registry action - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: set env run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV diff --git a/Containerfile b/Containerfile index 36a7559..d5ad2c5 100644 --- a/Containerfile +++ b/Containerfile @@ -12,5 +12,5 @@ RUN rpm-ostree override remove firefox firefox-langpacks && \ sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \ systemctl enable rpm-ostreed-automatic.timer && \ systemctl enable flatpak-automatic.timer && \ - rpm-ostree cleanup -m && \ + ostree container commit