build(deps): bump github/codeql-action from 3.25.8 to 3.25.9 #1768
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#********************************************************************* | |
# Copyright (c) Intel Corporation 2021 | |
# SPDX-License-Identifier: Apache-2.0 | |
#*********************************************************************/ | |
name: Docker Image CI | |
on: | |
push: | |
branches: [ main ] | |
tags: | |
- '*' | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Build the Docker image | |
run: docker build -f "Dockerfile" --tag vprodemo.azurecr.io/rpc-go:${{ github.sha }} --tag vprodemo.azurecr.io/rpc-go:latest . | |
- name: Docker Login | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0 | |
with: | |
registry: vprodemo.azurecr.io | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
logout: true | |
- name: Push the Docker image to the registry | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: docker push vprodemo.azurecr.io/rpc-go:${{ github.sha }} | |
- name: Push the Docker image to the registry | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: docker push vprodemo.azurecr.io/rpc-go:latest | |
- name: Push the Docker image to the registry | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: docker image tag vprodemo.azurecr.io/rpc-go:${GITHUB_REF#refs/tags/} && docker push vprodemo.azurecr.io/rpc-go:${GITHUB_REF#refs/tags/} |