Build(deps): Bump golang from 1.20-alpine to 1.21-alpine in /prometheus-varnish-exporter #465
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: 'Build basic docker container' | |
on: | |
schedule: | |
- cron: 0 7 * * THU | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: {} | |
jobs: | |
build-test-image: | |
name: 'Build Docker Serverspec image' | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
env: | |
DOCKER_IMAGE: ghcr.io/netlogix/docker/serverspec | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GHCR | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
context: './serverspec' | |
file: './serverspec/Dockerfile' | |
push: true | |
tags: ${{ env.DOCKER_IMAGE }}:${{ github.sha }} | |
build-docker-images: | |
needs: [build-test-image] | |
name: 'Build Docker Images' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- name: mariadb | |
context: ./mariadb | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: mariadb | |
context: ./mariadb | |
target: '' | |
version: '' | |
file: 10.6.dockerfile | |
build-args: '' | |
spec-file: '' | |
- name: mariadb | |
context: ./mariadb | |
target: '' | |
version: '' | |
file: 10.3.dockerfile | |
build-args: '' | |
spec-file: '' | |
- name: mysql | |
context: ./mysql | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: proxy | |
context: ./proxy | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: rabbitmq | |
context: ./rabbitmq | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: redis | |
context: ./redis | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: solr | |
context: ./solr | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: varnish | |
context: ./varnish | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: elasticsearch | |
context: ./elasticsearch | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: webserver-neos | |
context: ./webserver | |
target: 'webserver-neos' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: webserver-typo3 | |
context: ./webserver | |
target: 'webserver-typo3' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: webserver-shopware | |
context: ./webserver | |
target: 'webserver-shopware' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: webserver-shopware6 | |
context: ./webserver | |
target: 'webserver-shopware6' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: webserver-static | |
context: ./webserver | |
target: 'webserver-static' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: webserver-symfony | |
context: ./webserver | |
target: 'webserver-symfony' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: chromium | |
context: ./chromium | |
target: 'chromium' | |
version: 'stable' | |
build-args: '' | |
spec-file: '' | |
- name: mailhog | |
context: ./mailhog | |
target: 'mailhog' | |
version: '1.1.0' | |
build-args: '' | |
spec-file: '' | |
- name: cfssl | |
context: ./cfssl | |
target: 'cfssl' | |
version: '1.6' | |
build-args: '' | |
spec-file: '' | |
- name: cfssl-server | |
context: ./cfssl | |
target: 'cfssl-server' | |
version: '1.6' | |
build-args: '' | |
spec-file: '' | |
- name: tideways-daemon | |
context: ./tideways-daemon | |
target: 'tideways-daemon' | |
version: '1.8' | |
build-args: '' | |
spec-file: '' | |
- name: docker-proxy | |
context: ./docker-proxy | |
target: 'docker-proxy' | |
version: 'latest' | |
build-args: '' | |
spec-file: '' | |
- name: prometheus-apache-exporter | |
context: ./prometheus-apache-exporter | |
target: 'prometheus-apache-exporter' | |
version: '0.12.0' | |
build-args: '' | |
spec-file: '' | |
- name: prometheus-elasticsearch-exporter | |
context: ./prometheus-elasticsearch-exporter | |
target: 'prometheus-elasticsearch-exporter' | |
version: '1.5.0' | |
build-args: '' | |
spec-file: '' | |
- name: prometheus-nginx-exporter | |
context: ./prometheus-nginx-exporter | |
target: 'prometheus-nginx-exporter' | |
version: '0.11.0' | |
build-args: '' | |
spec-file: '' | |
- name: prometheus-php-fpm-exporter | |
context: ./prometheus-php-fpm-exporter | |
target: 'prometheus-php-fpm-exporter' | |
version: '2.2.0' | |
build-args: '' | |
spec-file: '' | |
- name: prometheus-redis-exporter | |
context: ./prometheus-redis-exporter | |
target: 'prometheus-redis-exporter' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: prometheus-solr-exporter | |
context: ./prometheus-solr-exporter | |
target: 'prometheus-solr-exporter' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: prometheus-varnish-exporter | |
context: ./prometheus-varnish-exporter | |
target: 'prometheus-varnish-exporter' | |
version: '1.6.1' | |
build-args: '' | |
spec-file: '' | |
- name: styleguide | |
context: ./styleguide | |
target: '' | |
version: '' | |
build-args: '' | |
spec-file: '' | |
- name: node | |
context: ./node | |
target: 'node' | |
version: 18 | |
build-args: | | |
NODE_VERSION=18 | |
spec-file: '' | |
- name: php-fpm | |
context: ./php | |
target: 'php-fpm' | |
version: 7.2 | |
build-args: | | |
PHP_VERSION=7.2 | |
UBUNTU_VERSION=18.04 | |
spec-file: '' | |
- name: php-fpm-dev | |
context: ./php | |
target: 'php-fpm-dev' | |
version: 7.2 | |
build-args: | | |
PHP_VERSION=7.2 | |
UBUNTU_VERSION=18.04 | |
spec-file: '' | |
- name: php-cli | |
context: ./php | |
target: 'php-cli' | |
version: 7.2 | |
build-args: | | |
PHP_VERSION=7.2 | |
UBUNTU_VERSION=18.04 | |
spec-file: '' | |
- name: php-cli-dev | |
context: ./php | |
target: 'php-cli-dev' | |
version: 7.2 | |
build-args: | | |
PHP_VERSION=7.2 | |
UBUNTU_VERSION=18.04 | |
spec-file: '' | |
- name: php-cron | |
context: ./php | |
target: 'php-cron' | |
version: 7.2 | |
build-args: | | |
PHP_VERSION=7.2 | |
UBUNTU_VERSION=18.04 | |
spec-file: '' | |
- name: php-cron-dev | |
context: ./php | |
target: 'php-cron-dev' | |
version: 7.2 | |
build-args: | | |
PHP_VERSION=7.2 | |
UBUNTU_VERSION=18.04 | |
spec-file: '' | |
- name: php-supervisor | |
context: ./php | |
target: 'php-supervisor' | |
version: 7.2 | |
build-args: | | |
PHP_VERSION=7.2 | |
UBUNTU_VERSION=18.04 | |
spec-file: '' | |
- name: php-fpm | |
context: ./php | |
target: 'php-fpm' | |
version: 7.4 | |
build-args: | | |
PHP_VERSION=7.4 | |
UBUNTU_VERSION=20.04 | |
spec-file: 'php/php-fpm_7_4_spec.rb' | |
- name: php-fpm-dev | |
context: ./php | |
target: 'php-fpm-dev' | |
version: 7.4 | |
build-args: | | |
PHP_VERSION=7.4 | |
UBUNTU_VERSION=20.04 | |
spec-file: '' | |
- name: php-cli | |
context: ./php | |
target: 'php-cli' | |
version: 7.4 | |
build-args: | | |
PHP_VERSION=7.4 | |
UBUNTU_VERSION=20.04 | |
spec-file: '' | |
- name: php-cli-dev | |
context: ./php | |
target: 'php-cli-dev' | |
version: 7.4 | |
build-args: | | |
PHP_VERSION=7.4 | |
UBUNTU_VERSION=20.04 | |
spec-file: '' | |
- name: php-cron | |
context: ./php | |
target: 'php-cron' | |
version: 7.4 | |
build-args: | | |
PHP_VERSION=7.4 | |
UBUNTU_VERSION=20.04 | |
spec-file: '' | |
- name: php-cron-dev | |
context: ./php | |
target: 'php-cron-dev' | |
version: 7.4 | |
build-args: | | |
PHP_VERSION=7.4 | |
UBUNTU_VERSION=20.04 | |
spec-file: '' | |
- name: php-supervisor | |
context: ./php | |
target: 'php-supervisor' | |
version: 7.4 | |
build-args: | | |
PHP_VERSION=7.4 | |
UBUNTU_VERSION=20.04 | |
spec-file: '' | |
- name: php-fpm | |
context: ./php | |
target: 'php-fpm' | |
version: 8.1 | |
build-args: | | |
PHP_VERSION=8.1 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-fpm-dev | |
context: ./php | |
target: 'php-fpm-dev' | |
version: 8.1 | |
build-args: | | |
PHP_VERSION=8.1 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-cli | |
context: ./php | |
target: 'php-cli' | |
version: 8.1 | |
build-args: | | |
PHP_VERSION=8.1 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-cli-dev | |
context: ./php | |
target: 'php-cli-dev' | |
version: 8.1 | |
build-args: | | |
PHP_VERSION=8.1 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-cron | |
context: ./php | |
target: 'php-cron' | |
version: 8.1 | |
build-args: | | |
PHP_VERSION=8.1 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-cron-dev | |
context: ./php | |
target: 'php-cron-dev' | |
version: 8.1 | |
build-args: | | |
PHP_VERSION=8.1 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-supervisor | |
context: ./php | |
target: 'php-supervisor' | |
version: 8.1 | |
build-args: | | |
PHP_VERSION=8.1 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-fpm | |
context: ./php | |
target: 'php-fpm' | |
version: 8.2 | |
file: 8.2.dockerfile | |
build-args: | | |
PHP_VERSION=8.2 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-fpm-dev | |
context: ./php | |
target: 'php-fpm-dev' | |
version: 8.2 | |
file: 8.2.dockerfile | |
build-args: | | |
PHP_VERSION=8.2 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-cli | |
context: ./php | |
target: 'php-cli' | |
version: 8.2 | |
file: 8.2.dockerfile | |
build-args: | | |
PHP_VERSION=8.2 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-cli-dev | |
context: ./php | |
target: 'php-cli-dev' | |
version: 8.2 | |
file: 8.2.dockerfile | |
build-args: | | |
PHP_VERSION=8.2 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-cron | |
context: ./php | |
target: 'php-cron' | |
version: 8.2 | |
file: 8.2.dockerfile | |
build-args: | | |
PHP_VERSION=8.2 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-cron-dev | |
context: ./php | |
target: 'php-cron-dev' | |
version: 8.2 | |
file: 8.2.dockerfile | |
build-args: | | |
PHP_VERSION=8.2 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
- name: php-supervisor | |
context: ./php | |
target: 'php-supervisor' | |
version: 8.2 | |
file: 8.2.dockerfile | |
build-args: | | |
PHP_VERSION=8.2 | |
UBUNTU_VERSION=22.04 | |
spec-file: '' | |
env: | |
DOCKER_IMAGE: ghcr.io/netlogix/docker/${{ matrix.image.name }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Read version from Dockerfile or matrix | |
id: docker | |
run: echo "version=$(./extract-version.sh ${{ matrix.image.context }}/Dockerfile ${{ matrix.image.version }})" >> $GITHUB_OUTPUT | |
- name: Login to GHCR | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and export to Docker | |
uses: docker/build-push-action@v3 | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
context: ${{ matrix.image.context }} | |
target: ${{ matrix.image.target }} | |
file: ${{ matrix.image.context }}/${{ matrix.image.file || 'Dockerfile' }} | |
build-args: ${{ matrix.image.build-args }} | |
load: true | |
tags: ${{ matrix.image.name }}:${{ steps.docker.outputs.version }} | |
cache-from: type=gha, scope=${{ github.workflow }}-${{ matrix.image.name }}-${{ matrix.image.version }} | |
cache-to: type=gha, scope=${{ github.workflow }}-${{ matrix.image.name }}-${{ matrix.image.version }}, mode=max | |
- name: Test | |
if: matrix.image.spec-file != '' | |
run: './test-container.sh ghcr.io/netlogix/docker/serverspec:${{ github.sha }} ${{ matrix.image.spec-file }}' | |
- name: Build and push to GHCR | |
id: docker_push | |
uses: docker/build-push-action@v3 | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
context: ${{ matrix.image.context }} | |
target: ${{ matrix.image.target }} | |
file: ${{ matrix.image.context }}/${{ matrix.image.file || 'Dockerfile' }} | |
build-args: ${{ matrix.image.build-args }} | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ env.DOCKER_IMAGE }}:latest,${{ env.DOCKER_IMAGE }}:${{ steps.docker.outputs.version }} | |
platforms: linux/amd64,linux/arm64 | |
cache-from: type=gha, scope=${{ github.workflow }}-${{ matrix.image.name }}-${{ matrix.image.version }} | |
cache-to: type=gha, scope=${{ github.workflow }}-${{ matrix.image.name }}-${{ matrix.image.version }}, mode=max |