diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index f3e2189..565f09a 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -31,13 +31,13 @@ jobs: install: true - name: Login to DockerHub uses: docker/login-action@v3 - if: (github.ref != 'refs/heads/master' && github.event_name != 'pull_request') || github.event_name == 'schedule' + if: ${{ github.event_name != 'pull_request' && (github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')) }} with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GitHub Container Registry uses: docker/login-action@v3 - if: (github.ref != 'refs/heads/master' && github.event_name != 'pull_request') || github.event_name == 'schedule' + if: ${{ github.event_name != 'pull_request' && (github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')) }} with: registry: ghcr.io username: privatebin diff --git a/Dockerfile b/Dockerfile index cd37790..63ad400 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM alpine:3.19.0 ARG ALPINE_PACKAGES="php83-iconv php83-pdo_mysql php83-pdo_pgsql php83-openssl php83-simplexml" ARG COMPOSER_PACKAGES="aws/aws-sdk-php google/cloud-storage" ARG PBURL=https://github.com/PrivateBin/PrivateBin/ -ARG RELEASE=1.6.1 +ARG RELEASE=1.6.2 ARG UID=65534 ARG GID=82