Skip to content

chore(deps): update actions/checkout digest to a5ac7e5 #8

chore(deps): update actions/checkout digest to a5ac7e5

chore(deps): update actions/checkout digest to a5ac7e5 #8

name: ubuntu2404-ansible-latest
on:
# yamllint disable-line rule:truthy
workflow_dispatch:
push:
paths:
- 'ubuntu2404-ansible-latest/**'
pull_request:
paths:
- 'ubuntu2404-ansible-latest/**'
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
dockerimage:
- ubuntu2404-ansible
platforms:
- linux/amd64
steps:
-
name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and export to Docker
uses: docker/build-push-action@v5
with:
context: ${{ matrix.dockerimage }}-latest
tags: docker-${{ matrix.dockerimage }}:test
load: true
platforms: ${{ matrix.platforms }}
-
name: Test
run: |
docker run --rm docker-${{ matrix.dockerimage }}:test
-
name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
-
name: Build and push to ghcr.io
uses: docker/build-push-action@v5
with:
context: ${{ matrix.dockerimage }}-latest
push: true
tags: ghcr.io/dev-sec/docker-${{ matrix.dockerimage }}:latest
platforms: ${{ matrix.platforms }}
if: github.ref == 'refs/heads/master'
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.dockerimage }}-latest
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/docker-${{ matrix.dockerimage }}:latest
platforms: ${{ matrix.platforms }}
if: github.ref == 'refs/heads/master'