Skip to content

Commit

Permalink
🔧 (create-release.yml): Update references to use the output from the …
Browse files Browse the repository at this point in the history
…'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.
12 changes: 7 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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"
Expand Down

0 comments on commit a5c84ac

Please sign in to comment.