forked from extern/FakeRelay
Try to build and push the image
This commit is contained in:
parent
cb02d954d1
commit
7413a91bbd
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -11,22 +11,20 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # get entire git tree, required for nerdbank gitversioning
|
fetch-depth: 0 # get entire git tree, required for nerdbank gitversioning
|
||||||
- name: Get version
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build and push the Docker image
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
cd src
|
Push-Location src
|
||||||
$version = (nbgv get-version -f json | ConvertFrom-Json).SimpleVersion
|
$version = (nbgv get-version -f json | ConvertFrom-Json).SimpleVersion
|
||||||
Write-Host "Version $version"
|
Write-Host "Version $version"
|
||||||
Write-Output "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
Pop-Location
|
||||||
|
|
||||||
# - name: Login to GitHub Container Registry
|
docker build . --tag ghcr.io/g3rv4/fakerelay:latest --tag "ghcr.io/g3rv4/fakerelay:$version"
|
||||||
# uses: docker/login-action@v2
|
docker push ghcr.io/g3rv4/fakerelay:latest
|
||||||
# with:
|
docker push "ghcr.io/g3rv4/fakerelay:$version"
|
||||||
# registry: ghcr.io
|
|
||||||
# username: ${{ github.actor }}
|
|
||||||
# password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# - name: Build the hello-docker Docker image
|
|
||||||
# run: |
|
|
||||||
# docker build . --tag ghcr.io/g3rv4/fakerelay:latest
|
|
||||||
# docker run ghcr.io/deselikem/hello-docker-gcr-demo:latest
|
|
||||||
# docker push ghcr.io/deselikem/hello-docker-gcr-demo:latest
|
|
||||||
|
Loading…
Reference in New Issue
Block a user