feat: Automatically push all Docker images
The following Docker images get pushed: - `kkrypt0nn/wordlists:alpine-latest` - `kkrypt0nn/wordlists:debian-latest` - `kkrypt0nn/wordlists:ubuntu-latest`
This commit is contained in:
14
.github/workflows/docker-publish.yml
vendored
14
.github/workflows/docker-publish.yml
vendored
@@ -8,25 +8,25 @@ on:
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
architecture: [amd64, arm64]
|
||||
os: [alpine, debian, ubuntu]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
file: ./Dockerfile.${{ matrix.os }}
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
push: true
|
||||
tags: kkrypt0nn/wordlists:latest
|
||||
tags: kkrypt0nn/wordlists:${{ matrix.os }}-latest
|
||||
|
||||
Reference in New Issue
Block a user