Skip to content

Commit

Permalink
tools/github actions: revert temporary changes used for trivy tests o…
Browse files Browse the repository at this point in the history
…n fork/branch
  • Loading branch information
nodiscc committed May 2, 2023
1 parent d48e06f commit 22b4044
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker-latest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build/push Docker image (master/latest)
on:
push:
branches: [ master, trivy ]
branches: [ master ]
jobs:
docker-build:
runs-on: ubuntu-latest
Expand All @@ -11,11 +11,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# - name: Login to DockerHub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -35,10 +35,10 @@ jobs:
with:
context: .
push: true
# tags: |
# ${{ secrets.DOCKER_IMAGE }}:trivy
# ghcr.io/${{ secrets.DOCKER_IMAGE }}:trivy
tags: ghcr.io/${{ secrets.DOCKER_IMAGE }}:trivy
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: |
${{ secrets.DOCKER_IMAGE }}:latest
ghcr.io/${{ secrets.DOCKER_IMAGE }}:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
- name: Run trivy image scanner
Expand Down

0 comments on commit 22b4044

Please sign in to comment.