Migrate from docker/build-push-action to stacker-build-push-action

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
Petu Eusebiu
2022-04-07 14:48:54 +03:00
committed by Ramkumar Chinchani
parent 5e35dfa28f
commit ad90a4975f
7 changed files with 286 additions and 51 deletions
+10 -16
View File
@@ -18,25 +18,19 @@ jobs:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: setup docker
uses: docker-practice/actions-setup-docker@0.0.1
with:
docker_version: 18.09
docker_channel: stable
- name: checkout this PR
uses: actions/checkout@v2
- name: Install go 1.17
uses: actions/setup-go@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: zot
repository: project-zot/zot
- name: start zot server
go-version: 1.17.x
- name: Checkout this PR
uses: actions/checkout@v2
- name: Start zot server
run: |
cd ./zot
cd $GITHUB_WORKSPACE
make binary
RUNNER_TRACKING_ID="" && ./bin/zot-linux-amd64 serve examples/config-conformance.json &
IP=`hostname -I | awk '{print $1}'`
echo "SERVER_URL=http://${IP}:5000" >> $GITHUB_ENV
IMAGE_REF="local-zot:v$(date +%Y%m%d%H%M%S)"
docker build -f ./Dockerfile-conformance -t "${IMAGE_REF}" .
docker run --rm -p 5000:5000 -v "$(pwd)":/go/src/github.com/project-zot/zot -idt "${IMAGE_REF}"
echo "SERVER_URL=http://${IP}:8080" >> $GITHUB_ENV
- name: Run OCI Distribution Spec conformance tests
uses: opencontainers/distribution-spec@main
env: