Coder Social home page Coder Social logo

isabella232 / push-to-registry-gh-action-workflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from binxio/push-to-registry-gh-action-workflow

0.0 0.0 0.0 11 KB

A ready-to-use Github action workflow for pushing container images to ghcr.io

License: Apache License 2.0

Dockerfile 100.00%

push-to-registry-gh-action-workflow's Introduction

.github/workflows/push-to-registry.yaml

A ready-to-use Github action workflow for pushing container images to ghcr.io.

  • builds a multi-architecture image for amd64 and arm64
  • pushes into the container registry corresponding to the repository
  • uses git describe --tags HEAD to generate a semver tag for the image

how to use it?

Assuming you have a github repository for a single docker image, type the following commands:

# ensure that the repository has relevant tags
$ [[ -n $(git tag) ]] || git tag 0.0.0 

# add the workflow
$ mkdir -p .github/workflows/
$ curl -sS -L -o .github/workflows/push-to-registry.yaml \
     https://raw.githubusercontent.com/binxio/push-to-registry-gh-action-workflow/main/.github/workflows/push-to-registry.yaml
$ git add .
$ git commit -m 'added push to ghcr.io workflow'
$ git push 

To make a beautiful semver release of your image, type:

$ read NEW_SEMVER
$ git tag $NEW_SEMVER
$ git push --tags

Checkout your github action push!

push-to-registry-gh-action-workflow's People

Contributors

mvanholsteijn avatar

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.