Skip to content

[Snyk] Security upgrade nginx from mainline to 1-bullseye #91

[Snyk] Security upgrade nginx from mainline to 1-bullseye

[Snyk] Security upgrade nginx from mainline to 1-bullseye #91

Workflow file for this run

name: Docker Image CI
on:
pull_request:
push:
branches:
- main
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['1.6', '1.7', 'develop', 'main', ]
variant: ['alpine', 'mainline']
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- name: Execute CI build hooks
id: docker_build
run: |
cd ./images/${{ matrix.version }}/${{ matrix.variant }}/
./hooks/run build
- name: Display docker images
run: docker images
- name: Execute CI test hooks
id: docker_test
run: |
cd ./images/${{ matrix.version }}/${{ matrix.variant }}/
./hooks/run test
- name: Execute CI push hooks
id: docker_push
if: ${{ github.event_name == 'push' && ( github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ) }}
run: |
cd ./images/${{ matrix.version }}/${{ matrix.variant }}/
# Export variables to login and push to GitHub Container Registry
#export DOCKER_REGISTRY=ghcr.io
#export DOCKER_LOGIN=${{ github.repository_owner }}
#export DOCKER_PASSWORD=${{ secrets.GITHUB_REGISTRY_TOKEN }}
#./hooks/run push
# Export variables to login and push to DockerHub Registry
export DOCKER_LOGIN=${{ secrets.DOCKERHUB_REGISTRY_LOGIN }}
export DOCKER_PASSWORD=${{ secrets.DOCKERHUB_REGISTRY_TOKEN }}
./hooks/run push