Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ on:
pull_request:

env:
DOCKERHUB_SLUG: distribution/distribution
DOCKERHUB_SLUG: goharbor/distribution

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: |
${{ env.DOCKERHUB_SLUG }}
Expand All @@ -46,33 +46,33 @@ jobs:
org.opencontainers.image.description=The toolkit to pack, ship, store, and deliver container content
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Build artifacts
uses: docker/bake-action@v1
uses: docker/bake-action@v5
with:
targets: artifact-all
-
name: Move artifacts
run: |
mv ./bin/**/* ./bin/
mv ./bin/**/* ./bin/ 2>/dev/null || true
-
name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.6
with:
name: registry
path: ./bin/*
if-no-files-found: error
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build image
uses: docker/bake-action@v1
uses: docker/bake-action@v3
with:
files: |
./docker-bake.hcl
Expand All @@ -81,7 +81,7 @@ jobs:
push: ${{ startsWith(github.ref, 'refs/tags/') }}
-
name: GitHub Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,25 @@ jobs:
COMMIT_RANGE: ${{ github.event_name == 'pull_request' && format('{0}..{1}',github.event.pull_request.base.sha, github.event.pull_request.head.sha) || github.sha }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: src/github.com/docker/distribution
fetch-depth: 50

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.20.10

- name: Dependencies
run: |
sudo apt-get -q update
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install python2-minimal
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install python3
cd /tmp && go install github.com/vbatts/git-validation@latest

- name: Build
working-directory: ./src/github.com/docker/distribution
run: |
DCO_VERBOSITY=-q script/validate/dco
GO111MODULE=on script/setup/install-dev-tools
script/validate/vendor
go build .
Expand Down
Loading