diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2249190..ddafab5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -37,7 +37,7 @@ jobs: - name: Get version in Dockerfile id: version run: | - echo "VERSION=$(cat Dockerfile | sed -n 's/.*postgresql:\([0-9.]*\).*/\1/p')" >> $GITHUB_OUTPUT + echo "VERSION=$(cat ${{ inputs.dockerfile }} | sed -n 's/.*postgresql:\([0-9.]*\).*/\1/p')" >> $GITHUB_OUTPUT - name: Seperate semver version id: semver diff --git a/.github/workflows/postgres-16.yaml b/.github/workflows/postgres-16.yaml index d782449..613fee3 100644 --- a/.github/workflows/postgres-16.yaml +++ b/.github/workflows/postgres-16.yaml @@ -13,7 +13,10 @@ on: - "16/Dockerfile" jobs: - build: + docker: + permissions: + contents: read + packages: write uses: ./.github/workflows/build.yaml with: dockerfile: "16/Dockerfile" diff --git a/16/Dockerfile b/16/Dockerfile index 33bd3ca..cd1472f 100644 --- a/16/Dockerfile +++ b/16/Dockerfile @@ -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