Skip to content

Merge pull request #25 from SkywardAI/feat/psycopg2 #4

Merge pull request #25 from SkywardAI/feat/psycopg2

Merge pull request #25 from SkywardAI/feat/psycopg2 #4

Workflow file for this run

name: 'Releasing Image 🚀'
on:
push:
tags:
- 'v*'
jobs:
release_image:
name: 'Releasing Image 🐳'
strategy:
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Check repository
uses: actions/checkout@v4
- name: Login to Container Registry
uses: docker/login-action@v3
# if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') && success()
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Release Docker image
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') && success()
run: |
docker build -t ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//} .
docker push ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}