Skip to content

Bump NuGet.Packaging from 5.6.0 to 5.11.6 in /src/GprTool #233

Bump NuGet.Packaging from 5.6.0 to 5.11.6 in /src/GprTool

Bump NuGet.Packaging from 5.6.0 to 5.11.6 in /src/GprTool #233

Workflow file for this run

name: Docker
on: [push,repository_dispatch,workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
env:
BUILT_IMAGE_NAME: gpr
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v1
- name: Setup dotnet using global.json
uses: actions/[email protected]
- uses: aarnott/[email protected]
id: nbgv
- name: Build docker image
run: docker build . -t ${{ env.BUILT_IMAGE_NAME }} --build-arg READ_PACKAGES_TOKEN=${{ secrets.READ_PACKAGES_TOKEN }}
- name: Login to ghcr.io
run: docker login https://ghcr.io -u token --password-stdin <<< ${{ github.token }}
- name: Publish to ghcr.io
run: |
docker tag ${{ env.BUILT_IMAGE_NAME }} ${{ env.IMAGE_NAME }}
docker push ${{ env.IMAGE_NAME }}
env:
IMAGE_NAME: ghcr.io/jcansdale/gpr:${{ steps.nbgv.outputs.SemVer2 }}
- name: Publish latest to ghcr.io
if: github.ref == 'refs/heads/master'
run: |
docker tag ${{ env.BUILT_IMAGE_NAME }} ${{ env.IMAGE_NAME }}
docker push ${{ env.IMAGE_NAME }}
env:
IMAGE_NAME: ghcr.io/jcansdale/gpr:latest
- name: Publish to DockerHub
if: github.ref == 'refs/heads/master'
run: |
docker login -u jcansdale --password-stdin <<< ${{ secrets.DOCKER_HUB_TOKEN }}
docker tag ${{ env.BUILT_IMAGE_NAME }} ${{ env.IMAGE_NAME }}
docker push ${{ env.IMAGE_NAME }}
docker tag ${{ env.BUILT_IMAGE_NAME }} ${{ env.LATEST_IMAGE_NAME }}
docker push ${{ env.LATEST_IMAGE_NAME }}
env:
IMAGE_NAME: jcansdale/gpr:${{ steps.nbgv.outputs.SemVer2 }}
LATEST_IMAGE_NAME: jcansdale/gpr:latest