Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update Github actions #115

Merged
merged 2 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2.0.0
uses: docker/setup-qemu-action@v2

- name: Docker meta
id: docker-meta
Expand All @@ -59,24 +59,24 @@ jobs:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2.0.0
uses: docker/setup-buildx-action@v2

- name: Login to quay.io
uses: docker/login-action@v2.0.0
uses: docker/login-action@v2
with:
registry: quay.io/enterprisedb
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}

- name: Log in to the GitHub Container registry
uses: docker/login-action@v2.0.0
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and load
uses: docker/build-push-action@v3.1.1
uses: docker/build-push-action@v3
with:
context: ${{ matrix.dir }}
file: ${{ matrix.file }}
Expand All @@ -88,7 +88,7 @@ jobs:
tags: ${{ steps.docker-meta.outputs.tags }}

- name: Dockle scan
uses: erzz/dockle-action@v1.3.1
uses: erzz/dockle-action@v1
with:
image: "quay.io/${{ env.IMAGE_STAGING }}:${{ matrix.tags[0] }}"
exit-code: '1'
Expand All @@ -97,7 +97,7 @@ jobs:
accept-filenames: usr/share/cmake/Templates/Windows/Windows_TemporaryKey.pfx,etc/trusted-key.key,usr/share/doc/perl-IO-Socket-SSL/certs/server_enc.p12,usr/share/doc/perl-IO-Socket-SSL/certs/server.p12,usr/local/lib/python3.8/site-packages/azure/core/settings.py,usr/share/postgresql-common/pgdg/apt.postgresql.org.asc,usr/local/lib/python3.7/dist-packages/azure/core/settings.py,etc/ssl/private/ssl-cert-snakeoil.key

- name: Build and push
uses: docker/build-push-action@v3.1.1
uses: docker/build-push-action@v3
with:
context: ${{ matrix.dir }}
file: ${{ matrix.file }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
echo "::set-output name=tags::${RESULT%,}"
- name: Build ${{ matrix.name }}
uses: docker/build-push-action@v3.1.1
uses: docker/build-push-action@v3
with:
context: ${{ matrix.dir }}
file: ${{ matrix.file }}
Expand Down Expand Up @@ -100,6 +100,6 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@v1.2.1
uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
token: ${{ secrets.REPO_GHA_PAT }}
- name: Update docker-entrypoint
uses: nick-fields/retry@v2.8.1
uses: nick-fields/retry@v2
with:
timeout_seconds: 20
max_attempts: 3
Expand All @@ -28,7 +28,7 @@ jobs:
cp ./Debian/src/root/usr/local/bin/docker-entrypoint.sh ./UBI/src/root/usr/local/bin/docker-entrypoint.sh
cp ./Debian/src/root/usr/local/bin/docker-entrypoint.sh ./IronBank/src/root/scripts/docker-entrypoint.sh
- name: Run update script
uses: nick-fields/retry@v2.8.1
uses: nick-fields/retry@v2
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
BASE_REGISTRY: "registry.access.redhat.com"
Expand Down