From 58a006ac454b3280691b3da1dc8729df2feaadbe Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Thu, 29 Jun 2023 12:05:36 +0530 Subject: [PATCH] updated actions --- .github/workflows/build.yml | 16 ++++++++-------- README.md | 2 -- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 975f13f..0f1aac5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ on: branches: - master tags: - - 'v*' + - '*' pull_request: branches: - master @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Docker meta id: meta @@ -32,24 +32,24 @@ jobs: quay.io/sameersbn/postgresql ghcr.io/sameersbn/postgresql tags: | - type=match,pattern=\d + type=match,pattern=\d+ type=match,pattern=(.*) latest - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to DockerHub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to Github Packages if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} @@ -57,14 +57,14 @@ jobs: - name: Login to Quay.io if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_TOKEN }} - name: Build image and push to container registries - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . push: ${{ github.event_name != 'pull_request' }} diff --git a/README.md b/README.md index 09275e0..469f2f0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![Circle CI](https://circleci.com/gh/sameersbn/docker-postgresql.svg?style=shield)](https://circleci.com/gh/sameersbn/docker-postgresql) [![Docker Repository on Quay.io](https://quay.io/repository/sameersbn/postgresql/status "Docker Repository on Quay.io")](https://quay.io/repository/sameersbn/postgresql) [![](https://badge.imagelayers.io/sameersbn/postgresql.svg)](https://imagelayers.io/?images=sameersbn/postgresql:latest 'Get your own badge on imagelayers.io') - # sameersbn/postgresql:14-20230628 - [Introduction](#introduction)