lint: SC30XX we don'tcare about POSIX compatibility #14
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: arch-ansible-latest | |
on: | |
# yamllint disable-line rule:truthy | |
workflow_dispatch: | |
push: | |
paths: | |
- 'arch-ansible-latest/**' | |
pull_request: | |
paths: | |
- 'arch-ansible-latest/**' | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
fail-fast: false | |
matrix: | |
dockerimage: | |
- arch-ansible | |
platforms: | |
- linux/amd64 | |
# #- linux/arm64 # not supported upstream | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Build and export to Docker | |
uses: docker/build-push-action@v4 | |
with: | |
context: ${{ matrix.dockerimage }}-latest | |
tags: docker-${{ matrix.dockerimage }}:test | |
platforms: ${{ matrix.platforms }} | |
load: true | |
- | |
name: Test | |
run: | | |
docker run --rm docker-${{ matrix.dockerimage }}:test | |
- | |
name: Login to ghcr.io | |
uses: docker/login-action@v2 | |
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@v4 | |
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@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
if: github.ref == 'refs/heads/master' | |
- | |
name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
context: ${{ matrix.dockerimage }}-latest | |
push: true | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/docker-${{ matrix.dockerimage }}:latest | |
platforms: ${{ matrix.platforms }} | |
if: github.ref == 'refs/heads/master' |