-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 (create-release.yml): Update references to use the output from the …
…'update-dockerfiles' job for the liquibase version to ensure consistency and accuracy in the Docker image tags and versioning.
- Loading branch information
Alejandro Alvarez
committed
Jul 26, 2024
1 parent
eb29b2a
commit a5c84ac
Showing
1 changed file
with
7 additions
and
5 deletions.
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 |
---|---|---|
|
@@ -155,6 +155,7 @@ jobs: | |
|
||
update-official-repo: | ||
name: "Update Official Docker Repo" | ||
needs: update-dockerfiles | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
|
@@ -163,9 +164,10 @@ jobs: | |
- name: Extract major.minor version | ||
id: extract_version | ||
run: | | ||
VERSION="${{ inputs.liquibaseVersion }}" | ||
VERSION="${{ needs.update-dockerfiles.outputs.liquibaseVersion }}" | ||
echo "MAJOR_MINOR=${VERSION%.*}" >> $GITHUB_ENV | ||
echo "VERSION: $VERSION" | ||
echo "MAJOR_MINOR: $MAJOR_MINOR" | ||
# - name: Check out liquibase/official-images | ||
# uses: actions/checkout@v4 | ||
|
@@ -180,12 +182,12 @@ jobs: | |
# echo "Architectures: arm64v8, amd64" >> library/liquibase | ||
# echo "GitRepo: https://github.com/liquibase/docker.git" >> library/liquibase | ||
# echo "" >> library/liquibase | ||
# echo "Tags: ${{ env.MAJOR_MINOR }}, ${{ inputs.liquibaseVersion }}, latest" >> library/liquibase | ||
# echo "Tags: ${{ env.MAJOR_MINOR }}, ${{ needs.update-dockerfiles.outputs.liquibaseVersion }}, latest" >> library/liquibase | ||
# echo "GitFetch: refs/heads/main" >> library/liquibase | ||
# echo "GitCommit: ${{ github.sha }}" >> library/liquibase | ||
# echo "File: Dockerfile" >> library/liquibase | ||
# echo "" >> library/liquibase | ||
# echo "Tags: ${{ env.MAJOR_MINOR }}-alpine, ${{ inputs.liquibaseVersion }}-alpine, alpine" >> library/liquibase | ||
# echo "Tags: ${{ env.MAJOR_MINOR }}-alpine, ${{ needs.update-dockerfiles.outputs.liquibaseVersion }}-alpine, alpine" >> library/liquibase | ||
# echo "GitFetch: refs/heads/main" >> library/liquibase | ||
# echo "GitCommit: ${{ github.sha }}" >> library/liquibase | ||
# echo "File: Dockerfile.alpine" >> library/liquibase | ||
|
@@ -196,7 +198,7 @@ jobs: | |
# else | ||
# git config user.name "liquibot" | ||
# git config user.email "[email protected]" | ||
# git commit -m "Update library/liquibase to ${{ inputs.liquibaseVersion }}" | ||
# git commit -m "Update library/liquibase to ${{ needs.update-dockerfiles.outputs.liquibaseVersion }}" | ||
# git push https://liquibot:[email protected]/liquibase/official-images.git | ||
# fi | ||
|
||
|
@@ -209,7 +211,7 @@ jobs: | |
# -H "Accept: application/vnd.github.v3+json" \ | ||
# https://api.github.com/repos/docker-library/official-images/pulls \ | ||
# -d '{ | ||
# "title": "Update library/liquibase to ${{ inputs.liquibaseVersion }}", | ||
# "title": "Update library/liquibase to ${{ needs.update-dockerfiles.outputs.liquibaseVersion }}", | ||
# "body": "Update library/liquibase with latest commit and version", | ||
# "head": "liquibase:master", | ||
# "base": "master" | ||
|