Skip to content

Contains GitHub actions workflow scripts for CI/CD of a simple python hello world application

Notifications You must be signed in to change notification settings

nayanex/github-workflows-actions-python

Repository files navigation

github-workflows-actions-python

In your root directory:

mkdir -p ./.github/workflows

Create a new GitHub Actions in the ./.github/workflows/docker-build.yml that will build and push the Docker image for a Python web application, with the following requirements:

  • Image name: python-helloworld
  • Tag: latest
  • Platforms: platforms: linux/amd64,linux/arm64

GitHub marketplace has a rich suite of upstream actions that can be easily integrated within a repository. One of the upstream action is Build and Push Docker images, which can be used to implement the required CI task.

The above GitHub action uses DockerHub Tokens and encrypted GitHub secrets to login into DockerHub and to push new images. To set up these credentials refer to the following resources:

Note: you will need a Dockerfile to build the image.

About

Contains GitHub actions workflow scripts for CI/CD of a simple python hello world application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published