Compare commits
2 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Works, as long as there is access to `docker` CLI.
|
Works, as long as there is access to `docker` CLI.
|
||||||
|
|
||||||
In my workflows, it is being run in the `alpine` linux with `git`, `bash` and `docker-cli` packages installed (see [actions/docker](https://git.dzuchun.ing/actions/docker)). Official `docker:cli` image should work too.
|
In my workflows, it is being run in the `alpine` linux with `git`, `bash` and `docker-cli` packages installed (see [actions/alpine](https://git.dzuchun.ing/actions/alpine)). Official `docker:cli` image should work too.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
||||||
4
main.sh
4
main.sh
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu -o pipefail
|
set -o fep
|
||||||
|
|
||||||
REGISTRY_URL=$(printenv INPUT_REGISTRY-URL)
|
REGISTRY_URL=$(printenv INPUT_REGISTRY-URL)
|
||||||
USER=$(printenv INPUT_REGISTRY-USER)
|
USER=$(printenv INPUT_REGISTRY-USER)
|
||||||
|
|
@ -23,7 +23,7 @@ echo "Building the image, tag=$IMAGE_TAG"
|
||||||
docker build --compress --tag $IMAGE_TAG $CONTEXT
|
docker build --compress --tag $IMAGE_TAG $CONTEXT
|
||||||
|
|
||||||
# log in the registry
|
# log in the registry
|
||||||
echo $TOKEN | docker login -u $USER --password-stdin $REGISTRY_URL
|
printenv TOKEN | docker login -u $USER --password-stdin $REGISTRY_URL
|
||||||
|
|
||||||
# push the image
|
# push the image
|
||||||
docker push $IMAGE_TAG
|
docker push $IMAGE_TAG
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue