| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- name: Docker Nightly Publish (amd64)
- on:
- push:
- branches: [ staging ]
- workflow_dispatch:
- permissions:
- contents: read
- jobs:
- docker:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to Docker Hub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Extract metadata
- run: |
- echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
- echo "DATE_TAG=$(date +%Y%m%d)" >> $GITHUB_ENV
- - name: Build and push nightly image (amd64 only)
- uses: docker/build-push-action@v5
- env:
- BUILDKIT_PROGRESS: plain
- with:
- context: .
- file: ./RackPeek.Web/Dockerfile
- platforms: linux/amd64
- push: true
- target: final
- tags: |
- aptacode/rackpeek:nightly
- aptacode/rackpeek:nightly-${{ env.SHORT_SHA }}
- cache-from: type=gha
- cache-to: type=gha,mode=max
|