Skip to content

Commit

Permalink
generate full arm64 image every day
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Dec 17, 2024
1 parent d99ee7f commit c955c30
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/container_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi
if [ "$TAG" == "arm64" ] ; then
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
sed -i 's/bookworm/bookworm-arm64/' extras/debian
sed -i 's/\[all\]//' extras/debian
# sed -i 's/\[all\]//' extras/debian
else
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
fi
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/snapshot-arm-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: SNAPSHOT-ARM-DAILY
on:
schedule:
- cron: '39 19 * * *'

env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
COPR_BASE64: ${{ secrets.COPR_BASE64 }}
PYTHONUNBUFFERED: true

jobs:

run-workflow:
name: Workflow
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo .github/prep.sh
- name: Lint Code
run: .github/linting.sh
- name: Test code
run: .github/testing.sh
- if: github.ref == 'refs/heads/main' && github.repository_owner == 'karmab'
name: Snapshot container
run: |
export TAG=arm64
.github/container_snapshot.sh

0 comments on commit c955c30

Please sign in to comment.