⬆️ Bump github.com/docker/docker (#361) #893
Workflow file for this run
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
on: | |
push: | |
tags: | |
- '*' # only test and release when a tag is pushed | |
concurrency: | |
group: registries-tests | |
name: Test and Release on tag | |
jobs: | |
tests-integration-img: | |
name: Integration tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.x | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: setup-docker | |
uses: docker-practice/actions-setup-docker@0.0.1 | |
- name: Login to quay | |
run: echo ${{ secrets.DOCKER_TESTING_PASSWORD }} | sudo -E docker login -u ${{ secrets.DOCKER_TESTING_USERNAME }} --password-stdin quay.io | |
- name: Install deps | |
run: | | |
sudo apt-get update && sudo apt-get install -y upx && sudo -E env "PATH=$PATH" make deps | |
sudo curl -fSL "https://github.com/genuinetools/img/releases/download/v0.5.11/img-linux-amd64" -o "/usr/bin/img" | |
sudo chmod a+x "/usr/bin/img" | |
- name: Login to quay with img | |
run: echo ${{ secrets.DOCKER_TESTING_PASSWORD }} | sudo img login -u ${{ secrets.DOCKER_TESTING_USERNAME }} --password-stdin quay.io | |
- name: Tests with Img backend | |
run: | | |
sudo -E env "PATH=$PATH" \ | |
env "LUET_BACKEND=img" \ | |
make test-integration | |
tests-integration: | |
name: Integration tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.x | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: setup-docker | |
uses: docker-practice/actions-setup-docker@0.0.1 | |
- name: Login to quay | |
run: echo ${{ secrets.DOCKER_TESTING_PASSWORD }} | sudo -E docker login -u ${{ secrets.DOCKER_TESTING_USERNAME }} --password-stdin quay.io | |
- name: Install deps | |
run: | | |
sudo apt-get update && sudo apt-get install -y upx && sudo -E env "PATH=$PATH" make deps | |
- name: Tests | |
run: | | |
sudo -E \ | |
env "PATH=$PATH" \ | |
env "TEST_DOCKER_IMAGE=${{ secrets.DOCKER_TESTING_IMAGE }}" \ | |
env "UNIT_TEST_DOCKER_IMAGE=${{ secrets.DOCKER_TESTING_IMAGE }}" \ | |
env "UNIT_TEST_DOCKER_IMAGE_REPOSITORY=${{ secrets.DOCKER_TESTING_UNIT_TEST_IMAGE }}" \ | |
make test-integration | |
tests-unit: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.x | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: setup-docker | |
uses: docker-practice/actions-setup-docker@0.0.1 | |
- name: Login to quay | |
run: echo ${{ secrets.DOCKER_TESTING_PASSWORD }} | sudo -E docker login -u ${{ secrets.DOCKER_TESTING_USERNAME }} --password-stdin quay.io | |
- name: Install deps | |
run: | | |
sudo apt-get update && sudo apt-get install -y upx && sudo -E env "PATH=$PATH" make deps | |
sudo curl -fSL "https://github.com/genuinetools/img/releases/download/v0.5.11/img-linux-amd64" -o "/usr/bin/img" | |
sudo chmod a+x "/usr/bin/img" | |
sudo make build | |
sudo cp -rf luet /usr/bin/luet | |
- name: Tests | |
run: | | |
sudo -E \ | |
env "PATH=$PATH" \ | |
env "TEST_DOCKER_IMAGE=${{ secrets.DOCKER_TESTING_IMAGE }}" \ | |
env "UNIT_TEST_DOCKER_IMAGE=${{ secrets.DOCKER_TESTING_IMAGE }}" \ | |
env "UNIT_TEST_DOCKER_IMAGE_REPOSITORY=${{ secrets.DOCKER_TESTING_UNIT_TEST_IMAGE }}" \ | |
make coverage | |
- name: Codecov | |
uses: codecov/codecov-action@v2.1.0 | |
with: | |
file: coverage.txt | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
needs: [ "tests-integration-img", "tests-integration","tests-unit" ] | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.x | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |