Skip to content

Commit

Permalink
Fix permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshbrntt committed Aug 3, 2023
1 parent f0a7fe2 commit bc9af7a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export CWD := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST)))))

ifndef DOCKER

UID := 1000
GID := 1000
DOCKER_REGISTRY_URL := ghcr.io

ifdef CI
Expand Down Expand Up @@ -50,7 +52,7 @@ push-macosx: docker-push
.PHONY: shell
shell: TARGET ?= windows
shell: COMMAND := bash
shell: docker-command
shell: docker-commanddocker-command

.PHONY: debug
debug:
Expand Down Expand Up @@ -81,6 +83,10 @@ docker-build: $(if $(CI),docker-login)
--tag $(IMAGE)/$(TARGET) \
.

.PHONY: fix-permissions
fix-permissions:
chown -R $(UID):$(GID)

.PHONY: docker-run
docker-run:
docker run \
Expand All @@ -95,6 +101,7 @@ docker-run:
.PHONY: docker-command
docker-command: docker-build
docker-command: $(if $(CI),docker-push)
docker-command: fix-permissions
docker-command: docker-run

else
Expand Down

0 comments on commit bc9af7a

Please sign in to comment.