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:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build docker image
|
||||
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
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
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