chore(deps): update golang docker tag to v1.21.3 #30
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: Skaffold | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- dockerfiles/bases/**/Dockerfile | |
- dockerfiles/ci/**/Dockerfile | |
- .github/workflows/ci.yml | |
pull_request: | |
branches: | |
- main | |
paths: | |
- dockerfiles/bases/**/Dockerfile | |
- dockerfiles/ci/**/Dockerfile | |
- .github/workflows/ci.yml | |
jobs: | |
build: | |
name: Skaffold Build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
matrix: | |
go-profile: [go-1.21, go-1.20, go-1.19] | |
builder-profile: [local-docker] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
# https://github.com/docker/setup-qemu-action | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
# https://github.com/docker/setup-buildx-action | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cache layers | |
uses: actions/cache@v3 | |
with: | |
path: "${{ github.workspace }}/.skaffold/cache" | |
key: skaffold-${{ hashFiles('**/cache') }} | |
restore-keys: | | |
skaffold- | |
- name: Build CI base images | |
uses: hiberbee/github-action-skaffold@latest | |
with: | |
skaffold-version: 2.8.0 | |
command: build | |
working-directory: dockerfiles/ci | |
image: base | |
# internal repository: hub.pingcap.net/ee/ci | |
repository: ghcr.io/pingcap-qe/ci | |
profile: ${{ matrix.go-profile }},${{ matrix.builder-profile }} | |
- name: Build product base images | |
uses: hiberbee/github-action-skaffold@latest | |
if: false | |
with: | |
skaffold-version: 2.8.0 | |
command: build | |
working-directory: dockerfiles/bases | |
# internal repository: hub.pingcap.net/bases | |
# dockerhub: pingcap/ | |
repository: ghcr.io/pingcap-qe/bases | |
profile: ${{ matrix.go-profile }},${{ matrix.builder-profile }} |