Attempting to speed up pipeline by using docker action

This commit is contained in:
Collin Duncan 2023-05-26 16:40:01 -05:00
parent 1e2933e780
commit 6866bc9ca7
No known key found for this signature in database

View file

@ -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