Skip to content

Commit

Permalink
Try disabling check
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jan 22, 2024
1 parent 74933e5 commit 7087385
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
test:
name: 🐘 PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
strategy:
matrix:
pg: [16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3, 9.2, 9.1, '9.0', 8.4, 8.3, 8.2]
Expand All @@ -33,25 +34,25 @@ jobs:
publish:
# Publish for a tag starting with v.
name: Push to Docker Hub
needs: test
if: startsWith(github.ref, 'refs/tags/v')
# needs: test
# if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: pgxn/pgxn-tools
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=raw,value=bookworm
labels: |
org.opencontainers.image.title=PGXN Tools
org.opencontainers.image.licenses=PostgreSQL
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: pgxn/pgxn-tools
# tags: |
# type=semver,pattern={{version}}
# type=semver,pattern={{major}}.{{minor}}
# type=semver,pattern=v{{major}}
# type=raw,value=bookworm
# labels: |
# org.opencontainers.image.title=PGXN Tools
# org.opencontainers.image.licenses=PostgreSQL
- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand All @@ -62,5 +63,6 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
tags: _testing_do_not_use
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ RUN chmod +x /usr/local/bin/apt.postgresql.org.sh \
&& rm -r cpanm ~/.cpanm \
&& echo Defaults lecture = never >> /etc/sudoers \
&& perl -i -pe 's/\bALL$/NOPASSWD:ALL/g' /etc/sudoers \
&& echo 'postgres ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers
&& echo 'postgres ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers \
# Ensure Git can do stuff in the working directory (issue #5).
&& git config --system --add safe.directory '*'

COPY bin/* /usr/local/bin/

Expand Down
4 changes: 0 additions & 4 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

set -e

# Ensure Git can do stuff in the working directory.
# https://github.com/pgxn/docker-pgxn-tools/issues/5
git config --system --add safe.directory "$PWD"

# Just continue if unprivileged user not requested.
[ -z "$AS_USER" ] && exec "$@"

Expand Down

0 comments on commit 7087385

Please sign in to comment.