Bump docker/build-push-action from 6.1.0 to 6.2.0 #10
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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 10 * * *' | |
push: | |
branches: | |
- 'main' | |
- 'releases/v*' | |
tags: | |
- 'v*' | |
pull_request: | |
env: | |
DOCKER_VERSION: v24.0.9 | |
jobs: | |
main: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
#- macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317 | |
- macos-13 | |
- windows-latest | |
version: | |
- pinned | |
- latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Set version | |
shell: bash | |
run: | | |
if [ "${{ matrix.version }}" != "pinned" ]; then | |
echo "DOCKER_VERSION=${{ matrix.version }}" >> $GITHUB_ENV | |
fi | |
- | |
name: Set up Docker | |
uses: ./ | |
with: | |
version: ${{ env.DOCKER_VERSION }} | |
- | |
name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # v2.3.0 | |
channel: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
#- macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317 | |
- macos-13 | |
- windows-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Set up Docker | |
uses: ./ | |
with: | |
version: v24.0.0-rc.4 | |
channel: test | |
- | |
name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # v2.3.0 | |
daemon-config: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
#- macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317 | |
- macos-13 | |
- windows-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Set up Docker | |
uses: ./ | |
with: | |
daemon-config: | | |
{ | |
"debug": true, | |
"features": { | |
"containerd-snapshotter": true | |
} | |
} | |
- | |
name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # v2.3.0 | |
context: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
#- macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317 | |
- macos-13 | |
- windows-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Set up Docker | |
uses: ./ | |
with: | |
version: ${{ env.DOCKER_VERSION }} | |
context: foo | |
- | |
name: Check context | |
run: | | |
docker context inspect foo | |
- | |
name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # v2.3.0 | |
lima-start-args: | |
#runs-on: macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317 | |
runs-on: macos-13 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Set up Docker | |
uses: ./ | |
env: | |
LIMA_START_ARGS: --cpus 4 --memory 8 | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
containerd: | |
- containerd-system | |
- containerd-tarball | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Uninstall containerd | |
if: matrix.containerd == 'containerd-tarball' | |
run: | | |
sudo apt-get remove -y containerd.io | |
- | |
name: Set up Docker | |
uses: ./ | |
with: | |
version: ${{ env.DOCKER_VERSION }} | |
- | |
name: Start registry | |
run: | | |
docker run -d -p 5000:5000 --restart=always --name registry registry:2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 | |
with: | |
driver: docker | |
driver-opts: network=host | |
- | |
name: Build and push | |
uses: docker/build-push-action@15560696de535e4014efeff63c48f16952e52dd1 # v6.2.0 | |
with: | |
context: ./test | |
push: true | |
tags: | | |
localhost:5000/name/app:latest | |
- | |
name: Inspect | |
run: | | |
docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}' | |
- | |
name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # v2.3.0 | |
build-macos: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
#- macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317 | |
- macos-13 | |
- macos-12 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Set up Docker | |
uses: ./ | |
with: | |
version: ${{ env.DOCKER_VERSION }} | |
- | |
name: Start registry | |
run: | | |
docker run -d -p 5000:5000 --restart=always --name registry registry:2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 | |
with: | |
driver: docker | |
driver-opts: network=host | |
- | |
name: Build and push | |
uses: docker/build-push-action@15560696de535e4014efeff63c48f16952e52dd1 # v6.2.0 | |
with: | |
context: ./test | |
push: true | |
tags: | | |
localhost:5000/name/app:latest | |
- | |
name: Inspect | |
run: | | |
docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}' | |
- | |
name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # v2.3.0 | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Set up Docker | |
uses: ./ | |
with: | |
version: ${{ env.DOCKER_VERSION }} | |
- | |
name: Build | |
working-directory: ./test | |
run: | | |
docker build -f win.Dockerfile -t test . | |
- | |
name: Inspect | |
run: | | |
docker image inspect test | |
- | |
name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # v2.3.0 | |
set-host: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- | |
name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Set up Docker | |
uses: ./ | |
with: | |
set-host: true | |
- | |
name: List contexts | |
run: | | |
docker context ls | |
- | |
name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # v2.3.0 |