Skip to content

Commit

Permalink
chore: trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 committed Oct 8, 2024
1 parent fa28ec9 commit 7340bfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ jobs:
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0

- name: Get version in Dockerfile
id: version
run: |
echo "VERSION=$(cat Dockerfile | sed -n 's/.*postgresql:\([0-9.]*\).*/\1/p')" >> $GITHUB_OUTPUT
- name: Seperate semver version
id: semver
run: |
export VERSION=$(cat ${{ inputs.dockerfile }} | sed -n 's/.*postgresql:\([0-9.]*\).*/\1/p')
echo "MAJOR=$(echo $VERSION | cut -d. -f1)" >> $GITHUB_OUTPUT
echo "MINOR=$(echo $VERSION | cut -d. -f2)" >> $GITHUB_OUTPUT
echo "PATCH=$(echo $VERSION | cut -d. -f3)" >> $GITHUB_OUTPUT
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/postgres-16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ on:
- "16/Dockerfile"

jobs:
build:
docker:
permissions:
contents: read
packages: write
uses: ./.github/workflows/build.yaml
with:
dockerfile: "16/Dockerfile"
Expand Down
4 changes: 1 addition & 3 deletions 16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ COPY --from=timescaledb-tools /go/bin/* /usr/local/bin/

# TimescaleDB extension (We will install last 3 versions)
COPY --from=timescaledb /tmp/*.so /opt/bitnami/postgresql/lib/

# TimescaleDB upgrade and downgrade scripts
COPY --from=timescaledb /tmp/*.sql /opt/bitnami/postgresql/share/extension/

# TimescaleDB initialization scripts
# TimescaleDB Docker initialization scripts
COPY --from=timescaledb /docker-entrypoint-initdb.d/*.sh /docker-entrypoint-initdb.d/

# Entrypoint
Expand Down

0 comments on commit 7340bfd

Please sign in to comment.