Skip to content

Bump actions/checkout from 3.0.2 to 4.1.0 #170

Bump actions/checkout from 3.0.2 to 4.1.0

Bump actions/checkout from 3.0.2 to 4.1.0 #170

Workflow file for this run

name: Docker Commit
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
tags-ignore:
- "*"
jobs:
push:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 14-alpine
- 16-alpine
services:
registry:
image: registry:2
ports:
- 5000:5000
name: Test & Tag Commit (node:${{ matrix.node }})
steps:
- uses: actions/[email protected]
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host
- name: Login to Quay
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
- name: Build test image
id: docker_test
uses: docker/build-push-action@v2
with:
push: true
tags: localhost:5000/renokico/clusteer:${{ github.sha }}-${{ matrix.node }}
build-args: |
VERSION=${{ matrix.node }}
- name: Test
run: |
docker run -d -p 8080:8080 localhost:5000/renokico/clusteer:${{ github.sha }}-${{ matrix.node }}
sleep 5
curl --silent -XGET --fail http://127.0.0.1:8080?url=https://example.com&actions=[]&html=1
curl --silent -XGET --fail http://127.0.0.1:8080/usage
- name: Build final image
id: docker_final
uses: docker/build-push-action@v2
with:
push: true
tags: quay.io/renokico/clusteer:${{ github.sha }}-${{ matrix.node }}
build-args: |
VERSION=${{ matrix.node }}