Skip to content

Upgrade to Ubuntu Noble + Postgresql client 16 #12

Upgrade to Ubuntu Noble + Postgresql client 16

Upgrade to Ubuntu Noble + Postgresql client 16 #12

Workflow file for this run

name: Build and deploy Docker image
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: sismics/backupninja:${{ steps.get_version.outputs.VERSION }}
- name: Create Github Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.get_version.outputs.VERSION }}