Git Product home page Git Product logo

action-julia-docker's Introduction

action-julia-docker

Create and publish a Docker image for a Julia application.

Inputs

Name Description Required Default
registry Docker registry false ghcr.io
registry-username Docker registry username false ${{ github.actor }}
registry-password Docker registry password true
image-name Docker image name false ${{ github.repository }}
julia-version Julia version true
julia-org GitHub organization providing the Julia package false ${{ github.actor }}
julia-project Julia package name false ${{ github.event.repository.name }}
julia-branch Branch of the Julia package false main
julia-run-script Entrypoint script used to run the Julia package false scripts/docker_run.sh
ssh-private-key SSH private key used to check out Julia repositories true

Outputs

Name Description Format
image-full-name Full name of the Docker image with registry prefix registry/owner/image
image-name Name of the Docker image with owner prefix owner/image
tags Tags for the Docker image v1,latest

Usage

name: Build and publish a Docker image

on:
  push:
    branches:
      - 'main'
    tags:
      - 'v*'
  pull_request:
    branches:
      - 'main'

jobs:
  build-and-push-image:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write

    steps:
      - name: Get branch name
        id: branch-name
        uses: tj-actions/branch-names@v5

      - name: Build and publish Julia application Docker image
        uses: chipkent/[email protected]
        with:
          registry-password: ${{ secrets.GITHUB_TOKEN }}
          julia-version: 1.6
          julia-org: ${{ github.actor }}
          julia-project: ${{ github.event.repository.name }}
          julia-branch: ${{ steps.branch-name.outputs.current_branch }}
          ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.