A collection of Docker related GitHub actions.
Build and push a docker image using a Dockerfile.
- uses: aboutbits/github-actions-docker/build-push@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
docker-image: ghcr.io/aboutbits/my-app
docker-tag: latest
build-args: |
ARG1=abc
ARG2=xyz
The following inputs can be used as step.with
keys:
Name | Required/Default | Description |
---|---|---|
registry |
ghcr.io |
Docker registry |
username |
required | Registry username |
password |
required | Registry password |
docker-image |
required | Docker image name |
docker-tag |
required | Docker image tag |
working-directory |
. |
The working directory |
dockerfile |
Dockerfile |
Path to the Dockerfile. (default {working-directory}/Dockerfile) |
build-args |
/ | List of build-time variables |
In order to have a versioning in place and working, create lightweight tags that point to the appropriate minor release versions.
Creating a new minor release:
git tag v1
git push --tags
Replacing an already existing minor release:
git tag -d v1
git push origin :refs/tags/v1
git tag v1
git push --tags
About Bits is a company based in South Tyrol, Italy. You can find more information about us on our website.
For support, please contact [email protected].
The MIT License (MIT). Please see the license file for more information.