Merge pull request #2 from PavelMilanov/dev #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release PgBackup on DockerHub | |
on: | |
push: | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
- 'Dockerfile' | |
- docker-compose.yaml | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
docker: | |
image: docker:dind | |
options: --privileged | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
container: | |
image: ubuntu:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
- name: Install Dependencies | |
run: | | |
apt update && apt install -y curl make | |
curl -fsSL https://get.docker.com -o get-docker.sh && bash get-docker.sh | |
- name: Build pgbackup | |
run: make release version=$(cat version.txt) | |
- name: Login to Docker Hub | |
uses: docker/#-action@v3 | |
with: | |
username: ${{secrets.DOCKER_REGISTRY_LOGIN}} | |
password: ${{secrets.DOCKER_REGISRTY_PWD}} | |
- name: Push to Docker Hub | |
run: make push version=$(cat version.txt) |