Skip to content

Commit

Permalink
Removed Docker tags and labels (not using)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jan 15, 2022
1 parent 73ecb65 commit ad623d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,11 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

Expand All @@ -71,7 +63,7 @@ jobs:
oc project ${{ secrets.NAMESPACE }}
# Cancel any rollouts in progress
oc rollout cancel dc/gfp-${{ github.event.number }} || true
oc rollout cancel dc/gfp-${{ github.event.number }} 2> /dev/null || true
# Process and apply deployment template
oc process -f .pipeline/deploy.yml \
Expand Down Expand Up @@ -101,8 +93,3 @@ jobs:
# Remove old build runs, build pods and deployment pods
oc delete all -l app=gfp-${{ github.event.number }}
- name: Remove Docker cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
Empty file removed 1
Empty file.

0 comments on commit ad623d5

Please sign in to comment.