Bump ubuntu from jammy-20240808 to jammy-20250126 #477
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: CI | |
on: [push, workflow_dispatch] | |
jobs: | |
skip-duplicate-actions: | |
name: Skip duplicate actions | |
runs-on: ubuntu-22.04 | |
outputs: | |
should-skip: ${{ steps.skip-check.outputs.should_skip }} | |
steps: | |
- id: skip-check | |
name: Check if workflow is not already running | |
uses: fkirc/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
concurrent_skipping: "same_content" | |
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]' | |
ci: | |
name: CI | |
needs: skip-duplicate-actions | |
if: ${{ needs.skip-duplicate-actions.outputs.should-skip != 'true' }} | |
runs-on: ubuntu-22.04 | |
env: | |
IMAGE_TARGET: base | |
IMAGE_TAG: aifrak/dotfiles:latest | |
CACHE_OLD: /tmp/.buildx-cache | |
CACHE_NEW: /tmp/.buildx-cache-new | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
- name: Build image and cache | |
uses: docker/[email protected] | |
with: | |
load: true | |
target: ${{ env.IMAGE_TARGET }} | |
tags: ${{ env.IMAGE_TAG }} | |
cache-from: type=local,src=${{ env.CACHE_OLD }} | |
cache-to: type=local,dest=${{ env.CACHE_NEW }} | |
# Temp fix | |
# https://github.com/docker/build-push-action/issues/252 | |
# https://github.com/moby/buildkit/issues/1896 | |
- name: Move cache | |
run: | | |
rm -rf ${{ env.CACHE_OLD }} | |
mv ${{ env.CACHE_NEW }} ${{ env.CACHE_OLD }} | |
- name: Test | |
run: ./run dc:run test | |
- name: Lint | |
run: ./run dc:run lint |