Attempting to speed up pipeline by using docker action
This commit is contained in:
parent
1e2933e780
commit
6866bc9ca7
1 changed files with 12 additions and 5 deletions
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
|
|
@ -13,8 +13,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
run: docker build . -f docker/server/Dockerfile -t $GHCR_IMAGE
|
uses: docker/build-push-action@v4
|
||||||
- name: Login to GHCR Docker repo
|
with:
|
||||||
run: docker login ghcr.io -u $GHCR_USERNAME --password $GHCR_PASSWORD
|
context: .
|
||||||
- name: Push docker image
|
push: true
|
||||||
run: docker push $GHCR_IMAGE
|
tags: $GHCR_IMAGE:latest
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
# run: docker build . -f docker/server/Dockerfile -t $GHCR_IMAGE
|
||||||
|
# - name: Login to GHCR Docker repo
|
||||||
|
# run: docker login ghcr.io -u $GHCR_USERNAME --password $GHCR_PASSWORD
|
||||||
|
# - name: Push docker image
|
||||||
|
# run: docker push $GHCR_IMAGE
|
||||||
Loading…
Add table
Reference in a new issue