Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b190776d81 |
13
.github/workflows/deploy.yml
vendored
13
.github/workflows/deploy.yml
vendored
@@ -8,6 +8,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
ver: ${{ steps.release.outputs.version }}
|
ver: ${{ steps.release.outputs.version }}
|
||||||
|
tag: ${{ steps.release.outputs.tag_name }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
@@ -32,12 +33,14 @@ jobs:
|
|||||||
- name: Build image for Docker Hub
|
- name: Build image for Docker Hub
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.release-on-push.output.ver }}
|
VERSION: ${{ needs.release-on-push.output.ver }}
|
||||||
run: docker build . --file Dockerfile --tag luketainton/fhed:$VERSION luketainton/fhed:latest
|
TAG: ${{ needs.release-on-push.output.tag }}
|
||||||
|
run: docker build . --file Dockerfile --build-arg VERSION --tag luketainton/fhed:$TAG --tag luketainton/fhed:latest
|
||||||
- name: Push image to Docker Hub
|
- name: Push image to Docker Hub
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.release-on-push.output.ver }}
|
VERSION: ${{ needs.release-on-push.output.ver }}
|
||||||
|
TAG: ${{ needs.release-on-push.output.tag }}
|
||||||
run: |
|
run: |
|
||||||
docker push luketainton/fhed:$VERSION &&
|
docker push luketainton/fhed:$TAG &&
|
||||||
docker push luketainton/fhed:latest
|
docker push luketainton/fhed:latest
|
||||||
|
|
||||||
docker-ghr:
|
docker-ghr:
|
||||||
@@ -51,12 +54,14 @@ jobs:
|
|||||||
- name: Build image for GitHub Package Registry
|
- name: Build image for GitHub Package Registry
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.release-on-push.output.ver }}
|
VERSION: ${{ needs.release-on-push.output.ver }}
|
||||||
run: docker build . --file Dockerfile --tag docker.pkg.github.com/luketainton/fhed/fhed:latest docker.pkg.github.com/luketainton/fhed/fhed:$VERSION
|
TAG: ${{ needs.release-on-push.output.tag }}
|
||||||
|
run: docker build . --file Dockerfile --build-arg VERSION --tag docker.pkg.github.com/luketainton/fhed/fhed:latest --tag docker.pkg.github.com/luketainton/fhed/fhed:$TAG
|
||||||
- name: Push image to GitHub Package Registry
|
- name: Push image to GitHub Package Registry
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.release-on-push.output.ver }}
|
VERSION: ${{ needs.release-on-push.output.ver }}
|
||||||
|
TAG: ${{ needs.release-on-push.output.tag }}
|
||||||
run: |
|
run: |
|
||||||
docker push docker.pkg.github.com/luketainton/fhed/fhed:$VERSION &&
|
docker push docker.pkg.github.com/luketainton/fhed/fhed:$TAG &&
|
||||||
docker push docker.pkg.github.com/luketainton/fhed/fhed:latest
|
docker push docker.pkg.github.com/luketainton/fhed/fhed:latest
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
Reference in New Issue
Block a user