[R4R]-feature: upgrade go version to 1.21 #144
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
name: Check Docker Build | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
- 'release/**' | |
paths: | |
- '**' | |
jobs: | |
CheckDockerBuild: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@main | |
with: | |
submodules: recursive | |
token: ${{ secrets.PAT }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Checking Docker Build | |
run: | | |
URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | |
response=$(curl -H 'authorization: Bearer ${{ secrets.PAT }}' -H "Accept: application/vnd.github.v3+json" -s -X GET -G $URL) | |
UPDATEFILE_DIR=$(echo "${response}" | jq -r '.[] | .filename') | |
echo $UPDATEFILE_DIR | |
cmd="docker build -f Dockerfile -t test:v1 ." | |
echo -e "\e[32m$cmd\e[0m" | |
$cmd |