Skip to content

chore(deps): bump the rust-minor-patch group with 2 updates #95

chore(deps): bump the rust-minor-patch group with 2 updates

chore(deps): bump the rust-minor-patch group with 2 updates #95

Workflow file for this run

name: Build and Release Docker Image
on:
release:
types: [created]
pull_request:
types: [opened, reopened, synchronize]
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Hub account login
if: github.event_name == 'release'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract release tag
if: github.event_name == 'release'
id: meta
run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Build and push Docker image
if: github.event_name == 'release'
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/nexumdb:latest
${{ secrets.DOCKERHUB_USERNAME }}/nexumdb:${{ steps.meta.outputs.version }}
${{ secrets.DOCKERHUB_USERNAME }}/nexumdb:${{ github.sha }}
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/nexumdb:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/nexumdb:buildcache,mode=max
- name: PR Docker build validation
if: github.event_name == 'pull_request'
continue-on-error: true
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: false