Skip to content

Bump actions/setup-python from 3 to 5 (#173) #89

Bump actions/setup-python from 3 to 5 (#173)

Bump actions/setup-python from 3 to 5 (#173) #89

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
run: |
docker build -t perconalab/pg_tde:${{ github.sha }} -t perconalab/pg_tde:latest . -f docker/Dockerfile
docker push -a perconalab/pg_tde