diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index e6e1f33..323a997 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -18,9 +18,16 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GHCR_PAT }} + - name: Run build run: | - make up push + make pull push - name: Run tests run: | diff --git a/Makefile b/Makefile index 592979c..2b26543 100644 --- a/Makefile +++ b/Makefile @@ -7,9 +7,12 @@ help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort -k 1,1 | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' +.PHONY: pull +pull: ## pull cached container + @docker pull ghcr.io/adfinis/pyaptly/cache:latest + .PHONY: up -up: ## start and build container if needed - #@docker pull ghcr.io/adfinis/pyaptly/cache:latest +up: pull ## start and build container if needed @DOCKER_BUILDKIT=1 docker compose up -d --build .PHONY: push