Skip to content

Install zip commands for ci images #24

Install zip commands for ci images

Install zip commands for ci images #24

Workflow file for this run

name: Publish Docker CI image
on:
workflow_dispatch: {}
pull_request:
branches: [main]
push:
branches: [main]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- dockerfile: swift-ci/main/ubuntu/18.04/Dockerfile
tags:
- ghcr.io/swiftwasm/swift-ci:main-ubuntu-18.04
- dockerfile: swift-ci/main/ubuntu/20.04/Dockerfile
tags:
- ghcr.io/swiftwasm/swift-ci:main-ubuntu-20.04
- dockerfile: swift-ci/main/ubuntu/22.04/Dockerfile
tags:
- ghcr.io/swiftwasm/swift-ci:main-ubuntu-22.04
- dockerfile: swift-ci/main/amazon-linux/2/Dockerfile
tags:
- ghcr.io/swiftwasm/swift-ci:main-amazon-linux-2
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.SWIFTWASM_PERSONAL_TOKEN }}
- name: Push ${{ matrix.dockerfile }}
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
context: .
file: ${{ matrix.dockerfile }}
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
tags: ${{ join(matrix.tags, ',') }}