Bump ubuntu from 22.04 to 24.04 #1
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
name: 'Building Checking 🚀' | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
check_building: | |
name: 'Check building🐳' | |
strategy: | |
matrix: | |
config: | |
- { dockerfile: "Dockerfile", platforms: "linux/amd64,linux/arm64" } | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check repository | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
# https://github.com/jlumbroso/free-disk-space/tree/54081f138730dfa15788a46383842cd2f914a1be#example | |
# - name: Free Disk Space (Ubuntu) | |
# uses: jlumbroso/free-disk-space@main | |
# with: | |
# # this might remove tools that are actually needed, | |
# # if set to "true" but frees about 6 GB | |
# tool-cache: false | |
# # all of these default to true, but feel free to set to | |
# # "false" if necessary for your workflow | |
# android: true | |
# dotnet: true | |
# haskell: true | |
# large-packages: true | |
# docker-images: true | |
# swap-storage: true | |
- name: Get tag name | |
id: tag | |
shell: bash | |
run: | | |
echo "SHORT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV | |
- name: Build Docker image | |
if: startsWith(github.ref, 'refs/tags/') != true && success() | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
push: false | |
platforms: ${{ matrix.config.platforms }} | |
tags: "ghcr.io/${{ secrets.DOCKER_REGISTRY }}/${{ secrets.IMAGE_NAME }}:${{ env.SHORT_HASH }}" | |
file: ${{ matrix.config.dockerfile }} | |
# run: | | |
# docker build -t ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.IMAGE_NAME }}:${GITHUB_SHA::7} . |