Skip to content

Commit

Permalink
Add steps to fetch and rebase official images repository in release w…
Browse files Browse the repository at this point in the history
…orkflow. Ensures the repo is in sync with the latest state from the remote
  • Loading branch information
sayaliM0412 committed Jan 28, 2025
1 parent e348326 commit f1df0b1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ jobs:
run: |
git config user.name "liquibot"
git config user.email "[email protected]"
- name: Update Dockerfile and commit changes
run: |
file_list=("Dockerfile" "Dockerfile.alpine")
Expand Down Expand Up @@ -209,6 +210,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
steps:
- name: Fetch and Rebase Official Images Repository
run: |
git clone https://github.com/docker-library/official-images.git
cd official-images
git fetch origin master
git checkout master
# Reset liquibase:master to match official master
git checkout -B liquibase:master
git reset --hard origin/master
# Push the reset liquibase:master back to the remote repository
git push origin liquibase:master --force
- name: Extract major.minor version
id: extract_version
Expand Down

0 comments on commit f1df0b1

Please sign in to comment.