Bump github.com/docker/distribution from 2.7.1+incompatible to 2.8.2+incompatible #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test cases | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- run: CGO_ENABLED=0 go build -v | |
- run: "echo wget > dockpin-apt.pkgs" | |
- name: Create Dockerfile | |
run: | | |
echo "FROM ubuntu:focal" >> test.Dockerfile | |
echo "COPY dockpin /usr/local/sbin/dockpin" >> test.Dockerfile | |
echo "COPY dockpin-apt.lock /tmp" >> test.Dockerfile | |
echo "RUN /usr/local/sbin/dockpin apt install -p /tmp/dockpin-apt.lock" >> test.Dockerfile | |
- run: ./dockpin docker pin -f test.Dockerfile | |
- run: cat test.Dockerfile | |
- run: ./dockpin apt pin -f test.Dockerfile | |
- run: cat dockpin-apt.lock | |
- run: docker build -f test.Dockerfile . |