Skip to content

Update image.yml

Update image.yml #25

Workflow file for this run

name: Image Push
on:
push:
branches:
- develop
- 'release/**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+**'
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CI: 1
jobs:
image-build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0
- run: |
# BUG: HEAD tag is fetched as lightweight instead of annotated
# https://github.com/actions/checkout/issues/290
if [ "${{ github.ref_type }}" == "tag" ]; then
git fetch -f origin ${{ github.ref }}:${{ github.ref }}
fi
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push the release images
run: ./scripts/release.sh