Skip to content

adds id to workload info #65

adds id to workload info

adds id to workload info #65

Workflow file for this run

name: Docker Image Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
tags: |
synadia/nex:main
synadia/nex:${{ env.SHORT_SHA }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
target: ci
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
tags: |
synadia/nex:main_ci
synadia/nex:${{ env.SHORT_SHA }}_ci