mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-10 00:30:29 +01:00
Entrypoint permissions can be set on COPY (#211)
This commit is contained in:
parent
5b8a484d80
commit
d4c5f65f31
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -11,10 +11,20 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
|
env:
|
||||||
|
DOCKER_BUILDKIT: '1'
|
||||||
run: docker build . -t offen/docker-volume-backup:test
|
run: docker build . -t offen/docker-volume-backup:test
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
working-directory: ./test
|
working-directory: ./test
|
||||||
run: |
|
run: |
|
||||||
|
# Stop the buildx container so the tests can make assertions
|
||||||
|
# about the number of running containers
|
||||||
|
docker rm -f $(docker ps -aq)
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
./test.sh test
|
./test.sh test
|
||||||
|
@ -16,8 +16,6 @@ WORKDIR /root
|
|||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
|
|
||||||
COPY --from=builder /app/cmd/backup/backup /usr/bin/backup
|
COPY --from=builder /app/cmd/backup/backup /usr/bin/backup
|
||||||
|
COPY --chmod=755 ./entrypoint.sh /root/
|
||||||
COPY ./entrypoint.sh /root/
|
|
||||||
RUN chmod +x entrypoint.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/root/entrypoint.sh"]
|
ENTRYPOINT ["/root/entrypoint.sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user