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

ci: Downgrade Docker #141

Merged
merged 1 commit into from
Jul 29, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Install Kerberos client
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq libkrb5-dev krb5-user

- name: golangci-lint (gokrb5)
uses: golangci/golangci-lint-action@v5
if: github.event_name == 'pull_request'
Expand All @@ -61,10 +66,19 @@ jobs:
env:
GOOS: windows

- name: Install Kerberos client
- name: Podman version
id: podman
shell: bash
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq libkrb5-dev krb5-user
echo "version=$(podman version | grep '^Version:' | tr -s ' ' | cut -d ' ' -f 2)" >>"${GITHUB_OUTPUT}"

- name: Downgrade Docker
if: steps.podman.outputs.version == '3.4.4'
shell: bash
run: |
apt-cache madison docker.io
sudo apt-get remove containerd.io
sudo apt-get install docker.io=24.0.7-0ubuntu2~22.04.1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
6 changes: 3 additions & 3 deletions testdata/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rockylinux/rockylinux:9-ubi-init as kdc
FROM rockylinux/rockylinux:9-ubi-init AS kdc

EXPOSE 8088
EXPOSE 8464
Expand All @@ -21,7 +21,7 @@ RUN kadmin.local ktadd -norandkey -k /etc/test.keytab test
RUN kadmin.local addprinc -randkey DNS/ns.example.com
RUN kadmin.local ktadd -k /etc/dns.keytab DNS/ns.example.com

FROM rockylinux/rockylinux:9-ubi-init as ns
FROM rockylinux/rockylinux:9-ubi-init AS ns

EXPOSE 8053

Expand All @@ -40,6 +40,6 @@ RUN chmod 640 /etc/named.conf
COPY --chown=named:named db.* /var/named/dynamic/
RUN chmod 644 /var/named/dynamic/db.*

FROM scratch as keytab
FROM scratch AS keytab
COPY --from=kdc /etc/test.keytab /test.keytab
COPY --from=kdc /etc/dns.keytab /dns.keytab