chore: fix GitHub Actions
This commit is contained in:
parent
27a08ff264
commit
ce949688fd
19
.github/workflows/container.yml
vendored
19
.github/workflows/container.yml
vendored
@ -4,28 +4,13 @@ jobs:
|
||||
image:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKER: podman
|
||||
DOCKER: docker
|
||||
IMAGE_PREFIX: quay.io/ldcraft
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Upgrade Podman
|
||||
uses: gacts/install-podman@v1
|
||||
# reference: https://github.com/containers/podman/discussions/17868
|
||||
- name: Tar as root
|
||||
run: |
|
||||
sudo mv -fv /usr/bin/tar /usr/bin/tar.orig
|
||||
echo -e '#!/bin/sh\n\nsudo /usr/bin/tar.orig "$@"' | sudo tee -a /usr/bin/tar
|
||||
sudo chmod +x /usr/bin/tar
|
||||
- name: Cache Podman
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.local/share/containers
|
||||
~/.config/containers
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/*.Dockerfile', 'build_image.sh') }}
|
||||
- name: Login to Container Registry
|
||||
uses: redhat-actions/podman-login@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: quay.io
|
||||
username: ${{ secrets.CONTAINER_USERNAME }}
|
||||
|
Loading…
Reference in New Issue
Block a user