Build and Push the shellinabox Container Images #108
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: Build and Push the shellinabox Container Images | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
schedule: | |
- cron: '00 03 * * 0' | |
jobs: | |
image: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- latest | |
- ubuntu | |
- centos | |
- fedora | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Setup Builder | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Login to Docker Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: docker.io | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Push Container Image | |
uses: docker/build-push-action@v3 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./${{ matrix.os }}/ | |
pull: true | |
push: true | |
tags: | | |
ghcr.io/sspreitzer/shellinabox-container-image:${{ matrix.os }} | |
docker.io/sspreitzer/shellinabox:${{ matrix.os }} |