Action to push a built docker image to a docker registry
name: Example Job
on: [push]
jobs:
- name: build image
run: docker build -t example-name:image-tag-to-use .
- name: Publish to Registry
uses: ambimax/action-docker-push@v1
with:
name: example-name
username: ${{ secrets.DOCKER_USERNAME_AMBIMAX }}
password: ${{ secrets.DOCKER_PASSWORD_AMBIMAX }}
registry: ${{ secrets.DOCKER_REGISTRY_AMBIMAX }}
id: image-tag-to-use
Name | Description | required |
---|---|---|
name | The name of the image you would like to push | true |
username | The login username for the registry | true |
password | The login password for the registry | true |
registry | Use registry for pushing to a custom registry | true |
id | The id to tag the given image with | false |
Konstantin Bode, ambimax® GmbH Dominik Wißler, ambimax® GmbH