pin GHA versions. readme and workflow tweaks (#15)
This commit is contained in:
12
.github/workflows/call-local-docker-build.yaml
vendored
12
.github/workflows/call-local-docker-build.yaml
vendored
@@ -17,6 +17,18 @@ on:
|
||||
- '.github/linters/**'
|
||||
|
||||
jobs:
|
||||
|
||||
testing-event-messages:
|
||||
if: always()
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
run: |
|
||||
echo "event_name: ${{ github.event_name }}"
|
||||
# echo "event.workflow_run: ${{ github.event.workflow_run }}"
|
||||
echo "event.head_commit: ${{ github.event.head_commit }}"
|
||||
echo "event.head_commit.message: ${{ github.event.head_commit.message }}"
|
||||
|
||||
call-docker-build:
|
||||
|
||||
name: Call Docker Build
|
||||
|
||||
2
.github/workflows/call-super-linter.yaml
vendored
2
.github/workflows/call-super-linter.yaml
vendored
@@ -22,7 +22,7 @@ jobs:
|
||||
### https://docs.github.com/en/actions/learn-github-actions/reusing-workflows
|
||||
### you can also call workflows from inside the same repo via file path
|
||||
|
||||
#FIXME: customize uri to point to your own linter repository
|
||||
#FIXME: customize uri to point to your own reusable linter repository
|
||||
uses: bretfisher/super-linter-workflow/.github/workflows/reusable-super-linter.yaml@main
|
||||
|
||||
### Optional settings examples
|
||||
|
||||
18
.github/workflows/reusable-docker-build.yaml
vendored
18
.github/workflows/reusable-docker-build.yaml
vendored
@@ -109,28 +109,28 @@ jobs:
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v3.3.0
|
||||
-
|
||||
# we need qemu and buildx so we can build multiple platforms later
|
||||
name: Set up QEMU
|
||||
id: qemu
|
||||
uses: docker/setup-qemu-action@v2
|
||||
uses: docker/setup-qemu-action@v2.1.0
|
||||
-
|
||||
# BuildKit (used with `docker buildx`) is the best way to build images
|
||||
name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v2.4.1
|
||||
-
|
||||
name: Login to DockerHub
|
||||
if: inputs.dockerhub-enable
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v2.1.0
|
||||
with:
|
||||
username: ${{ secrets.dockerhub-username }}
|
||||
password: ${{ secrets.dockerhub-token }}
|
||||
-
|
||||
name: Login to GHCR
|
||||
if: inputs.ghcr-enable
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v2.1.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
@@ -138,7 +138,7 @@ jobs:
|
||||
-
|
||||
name: Docker meta
|
||||
id: docker_meta
|
||||
uses: docker/metadata-action@v4
|
||||
uses: docker/metadata-action@v4.3.0
|
||||
with:
|
||||
# list of Docker images to use as base name for tags
|
||||
images: ${{ inputs.image-names }}
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
# then push to one or more registries (based on image list above in docker_meta)
|
||||
name: Docker Build and Push
|
||||
id: build_image
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v4.0.0
|
||||
with:
|
||||
platforms: ${{ inputs.platforms }}
|
||||
context: ${{ inputs.context }}
|
||||
@@ -167,7 +167,7 @@ jobs:
|
||||
# If PR, put image tags in the PR comments
|
||||
# from https://github.com/marketplace/actions/create-or-update-comment
|
||||
name: Find comment for image tags
|
||||
uses: peter-evans/find-comment@v2
|
||||
uses: peter-evans/find-comment@v2.2.1
|
||||
if: github.event_name == 'pull_request' && inputs.comment-enable
|
||||
id: fc
|
||||
with:
|
||||
@@ -177,7 +177,7 @@ jobs:
|
||||
|
||||
# If PR, put image tags in the PR comments
|
||||
- name: Create or update comment for image tags
|
||||
uses: peter-evans/create-or-update-comment@v2
|
||||
uses: peter-evans/create-or-update-comment@v2.1.1
|
||||
if: github.event_name == 'pull_request' && inputs.comment-enable
|
||||
with:
|
||||
comment-id: ${{ steps.fc.outputs.comment-id }}
|
||||
|
||||
Reference in New Issue
Block a user