Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecating CircleCI to migrate to GA #11

Merged
merged 9 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .circleci/config.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/full_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Docker Repository Update

on:
push:
branches:
- master
schedule:
- cron: '0 1 * * *'

jobs:
update_docker_repo_info:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Set up pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv

- name: Install dependencies
run: pipenv install

- name: Run update-docker-repo-info script
run: pipenv run ./update-docker-repo-info.py

- name: Configure Git for commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "dc-builder"

- name: Check for changes
id: git_status
run: |
git status --short > git_changes.txt
cat git_changes.txt

- name: Upload artifacts (if changes)
if: steps.git_status.outputs.changes != ''
run: |
mkdir -p artifacts
cat git_changes.txt | awk '{print $2}' | sed 's:/*$::' | xargs -I {} cp -rf {} artifacts/. || echo "cp failed for some reason. continue..."
continue-on-error: true

- name: Commit and push changes
if: steps.git_status.outputs.changes != ''
run: |
git add .
git commit -m "$(date): auto repo info update [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true

- name: Print completion message
run: echo "Docker repository update complete."