Skip to content

Commit 49904fa

Browse files
author
Jean-Louis Fuchs
committed
login on registry
1 parent a45c18c commit 49904fa

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/testing.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,16 @@ jobs:
1818
- name: Checkout code
1919
uses: actions/checkout@v2
2020

21+
- name: Login to GitHub Container Registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
2128
- name: Run build
2229
run: |
23-
make up push
30+
make pull push
2431
2532
- name: Run tests
2633
run: |

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
help:
88
@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}'
99

10+
.PHONY: pull
11+
pull: ## pull cached container
12+
@docker pull ghcr.io/adfinis/pyaptly/cache:latest
13+
1014
.PHONY: up
11-
up: ## start and build container if needed
12-
#@docker pull ghcr.io/adfinis/pyaptly/cache:latest
15+
up: pull ## start and build container if needed
1316
@DOCKER_BUILDKIT=1 docker compose up -d --build
1417

1518
.PHONY: push

0 commit comments

Comments
 (0)