Skip to content

Commit

Permalink
Label images correctly in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sickcodes committed Nov 18, 2024
1 parent fb8aa4b commit 93c2119
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,18 @@ jobs:
- name: Build Docker image
id: build_image
run: |
docker build "$GITHUB_WORKSPACE" -t ${{ secrets.DOCKER_HUB_USER_NAME }}/docker-osx:$GITHUB_SHA --label dockerfile-path="Dockerfile"
docker build "$GITHUB_WORKSPACE" -t sickcodes/docker-osx:master --label dockerfile-path="Dockerfile"
- name: Push Docker image
run: docker push ${{ secrets.DOCKER_HUB_USER_NAME }}/docker-osx
- name: Label Master Docker Image as Latest
id: build_image
run: |
docker tag sickcodes/docker-osx:master sickcodes/docker-osx:latest
- name: Push Docker image master
run: docker push sickcodes/docker-osx:master

- name: Push Docker image latest
run: docker push sickcodes/docker-osx:latest

- name: Logout from Docker Hub
run: docker logout
Expand Down

0 comments on commit 93c2119

Please sign in to comment.