mirror of
https://github.com/fmtr/haco.git
synced 2026-10-26 19:01:51 -04:00
Add support for running as (non-Add-on) Docker and pre-built image
This commit is contained in:
parent
cdacf80fc7
commit
7bee5d3da5
3 changed files with 22 additions and 7 deletions
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
|
|
@ -30,6 +30,13 @@ jobs:
|
|||
run: |
|
||||
pip install twine tappack
|
||||
|
||||
- name: Docker Login
|
||||
env:
|
||||
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
||||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
|
||||
run: |
|
||||
echo $DOCKER_TOKEN | docker login --username $DOCKER_USER --password-stdin
|
||||
|
||||
- name: Increment Version
|
||||
run: |
|
||||
|
||||
|
|
@ -74,3 +81,11 @@ jobs:
|
|||
DATA="{\"destination\": \"${URL}\"}"
|
||||
curl --request POST --url https://api.rebrandly.com/v1/links/${LINK_ID} --header 'accept: application/json' --header "apikey: ${REBRANDLY_API_KEY}" --header 'content-type: application/json' --data "$DATA" &> /dev/null
|
||||
|
||||
- name: Build Docker
|
||||
run: |
|
||||
docker build . --build-arg TYPE=release --build-arg VERSION=${VERSION} --tag fmtr/${NAME}:v${VERSION}
|
||||
docker tag fmtr/${NAME}:v${VERSION} fmtr/${NAME}:latest
|
||||
|
||||
- name: Push Docker
|
||||
run: |
|
||||
docker push --all-tags fmtr/${NAME}
|
||||
Loading…
Add table
Add a link
Reference in a new issue