Skip to content

Update base image to Ubuntu 24.04 #2

Update base image to Ubuntu 24.04

Update base image to Ubuntu 24.04 #2

Workflow file for this run

name: Build_MultiBase_Docker_Images
on:
push:
branches:
- main
workflow_dispatch:
repository_dispatch:
types: [trigger-sub-build]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile: [Dockerfile.alpine, Dockerfile.ubuntu]
platform: [linux/amd64]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push ${{ matrix.dockerfile }} image
uses: docker/build-push-action@v6
with:
context: .
file: ./${{ matrix.dockerfile }}
platforms: ${{ matrix.platform }}
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/docker-warp-redsocks:${{ matrix.dockerfile == 'Dockerfile.alpine' && 'alpine' || 'ubuntu' }}