Skip to content

fix: Add current date to make it possible to pin versions and add rust beta toolchain #389

fix: Add current date to make it possible to pin versions and add rust beta toolchain

fix: Add current date to make it possible to pin versions and add rust beta toolchain #389

Workflow file for this run

name: Docker
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
schedule:
- cron: '30 1 * * 1' # run every Monday at 01:30
workflow_dispatch:
push:
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
jobs:
set_date:
runs-on: ubuntu-latest
outputs:
date_today: ${{ steps.date_step.outputs.today }}
steps:
- id: date_step
run: echo "today=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
docker:
needs: set_date
uses: famedly/github-workflows/.github/workflows/docker.yml@49401388492ed7fe3eeb13fbefacf68168e9bc64
with:
push: ${{ github.event_name != 'pull_request' }} # Always build, don't publish on pull requests
image_name: rust-container
tags: |
type=raw,value=nightly
type=raw,value=nightly-${{needs.set_date.outputs.date_today}}
build_args: |
NIGHTLY_VERSION_DATE=${{needs.set_date.outputs.date_today}}
registry: docker-oss.nexus.famedly.de
registry_user: ${{ vars.NEXUS_REGISTRY_USER }}
secrets: inherit