-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add steps to fetch and rebase official images repository in release w…
…orkflow. Ensures the repo is in sync with the latest state from the remote
- Loading branch information
1 parent
e348326
commit f1df0b1
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
|
@@ -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 | ||
|