Giter Site home page Giter Site logo

helloarm-github-workflow's Introduction

Note

See my updated examples on how to use GitHub Actions to build and push to Docker Hub. Just search for my repositories beginning with GitHub-Actions-to-Docker-Hub-*.

Automated build of multi-arch Docker Images

See older workflows in HelloARM repository, however the following is 'state of the art' as of 2022:

Build locally

With the new buildx command, you can build multi-arch Images by just:

docker buildx create --name mybuilder

docker buildx use mybuilder
docker buildx build \
    --platform \
        linux/amd64,\
        linux/arm/v7 \
    -t dersimn/helloarm \
    -t dersimn/helloarm:2 \
    -t dersimn/helloarm:2.3
    -t dersimn/helloarm:2.3.4 \
    --push .

Using GitHub Workflow

You can use GitHub Workflows to trigger the exact same buildx-build on every pushed commit and even let GitHub tag your Docker Images for you using semver tags.

With this method your useres can run

docker run dersimn/helloarm-github-workflow
docker run dersimn/helloarm-github-workflow:2
docker run dersimn/helloarm-github-workflow:2.3
docker run dersimn/helloarm-github-workflow:2.3.4
docker run dersimn/helloarm-github-workflow:latest
docker run dersimn/helloarm-github-workflow:<branch name>

on any platform, Docker will then pull the right image (amd64/arm/โ€ฆ) for you.

Usage

Provide Login Information for Docker Hub

  • In GitHub go to: Settings > Secrets
  • Create
    • DOCKERHUB_USERNAME = ...
    • DOCKERHUB_TOKEN = ...

Generate a Token on https://hub.docker.com > Account Settings > Security > Access Tokens > New Access Token

helloarm-github-workflow's People

Contributors

dersimn avatar

Watchers

James Cloos avatar  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.