mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-12-22 05:51:32 -06:00
Label images correctly in yaml
This commit is contained in:
parent
fb8aa4b248
commit
93c2119ebc
14
.github/workflows/docker-build.yml
vendored
14
.github/workflows/docker-build.yml
vendored
@ -30,10 +30,18 @@ jobs:
|
|||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
id: build_image
|
id: build_image
|
||||||
run: |
|
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
|
- name: Label Master Docker Image as Latest
|
||||||
run: docker push ${{ secrets.DOCKER_HUB_USER_NAME }}/docker-osx
|
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
|
- name: Logout from Docker Hub
|
||||||
run: docker logout
|
run: docker logout
|
||||||
|
Loading…
Reference in New Issue
Block a user