v3.9.0 #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI Ontime | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
publish_docker: | |
runs-on: ubuntu-latest | |
env: | |
CI: '' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Docker Setup Buildx | |
uses: docker/[email protected] | |
- name: Build and push stable release | |
if: github.event.release.prerelease == false | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
# Push is a shorthand for --output=type=registry | |
push: true | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ontime:${{ github.event.release.tag_name }} , ${{ secrets.DOCKERHUB_USERNAME }}/ontime:latest | |
- name: Build and push pre-release | |
if: github.event.release.prerelease == true | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
# Push is a shorthand for --output=type=registry | |
push: true | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ontime:${{ github.event.release.tag_name }} , ${{ secrets.DOCKERHUB_USERNAME }}/ontime:nightly | |