Update docker-deploy.yml
This commit is contained in:
24
.github/workflows/docker-deploy.yml
vendored
24
.github/workflows/docker-deploy.yml
vendored
@@ -10,20 +10,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- uses: mr-smithers-excellent/docker-build-push@v6.3
|
||||||
uses: docker/setup-buildx-action@v1
|
name: Build & push Docker image
|
||||||
|
with:
|
||||||
- name: Build and push Docker image
|
image: joshnotwright/nhlscoreboard
|
||||||
env:
|
tags: ${{ github.event.release.tag_name }}, latest
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
registry: docker.io
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
RELEASE_VERSION: ${{ github.event.release.tag_name }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
run: |
|
|
||||||
docker build -t joshnotwright/nhlscoreboard .
|
|
||||||
docker tag joshnotwright/nhlscoreboard:latest joshnotwright/nhlscoreboard:${RELEASE_VERSION}
|
|
||||||
docker tag joshnotwright/nhlscoreboard:latest joshnotwright/nhlscoreboard:latest
|
|
||||||
docker push joshnotwright/nhlscoreboard:${RELEASE_VERSION}
|
|
||||||
docker push joshnotwright/nhlscoreboard:latest
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user