This commit is contained in:
Admiralawkbar 2020-12-03 14:39:32 -06:00
parent f25d3b55c5
commit 6350d91800
2 changed files with 20 additions and 21 deletions

View file

@ -59,7 +59,7 @@ jobs:
password: ${{ secrets.GCR_TOKEN }}
registry: ghcr.io
image_name: github/super-linter
image_tag: "${GITHUB_SHA}"
image_tag: ${GITHUB_SHA}
dockerfile: Dockerfile
build_extra_args: "--build-arg=BUILD_DATE=${BUILD_DATE} --build-arg=BUILD_REVISION=${GITHUB_SHA} --build-arg=BUILD_VERSION=${GITHUB_SHA}"
env:

View file

@ -43,28 +43,27 @@ jobs:
# Run Deploy script #
#####################
- name: Deploy latest image to DockerHub
env:
# Set the Env Vars
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_REPO: github/super-linter
IMAGE_VERSION: latest
DOCKERFILE_PATH: Dockerfile
REGISTRY: Docker
shell: bash
run: .automation/upload-docker.sh
uses: whoan/docker-build-with-cache-action@v5
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
image_name: github/super-linter
image_tag: "latest,v3"
dockerfile: Dockerfile
build_extra_args: "--build-arg=BUILD_DATE=${BUILD_DATE} --build-arg=BUILD_REVISION=${GITHUB_SHA} --build-arg=BUILD_VERSION=${GITHUB_SHA}"
push_image_and_stages: true
#############################
# Run Deploy script for GPR #
#############################
- name: Deploy Latest image to GitHub Container Registry
env:
# Set the Env Vars
GCR_USERNAME: ${{ secrets.GCR_USERNAME }}
GCR_TOKEN: ${{ secrets.GCR_TOKEN }}
IMAGE_REPO: github/super-linter
IMAGE_VERSION: latest
DOCKERFILE_PATH: Dockerfile
REGISTRY: GCR
shell: bash
run: .automation/upload-docker.sh
uses: whoan/docker-build-with-cache-action@v5
with:
username: ${{ secrets.GCR_USERNAME }}
password: ${{ secrets.GCR_TOKEN }}
registry: ghcr.io
image_name: github/super-linter
image_tag: "latest,v3"
dockerfile: Dockerfile
build_extra_args: "--build-arg=BUILD_DATE=${BUILD_DATE} --build-arg=BUILD_REVISION=${GITHUB_SHA} --build-arg=BUILD_VERSION=${GITHUB_SHA}"
push_image_and_stages: true