Update docker-deploy.yml

This commit is contained in:
2024-02-18 13:52:52 -05:00
committed by GitHub
parent ea4c6dc24e
commit c8a5e47de1

View File

@@ -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