Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Sep 5, 2023
2 parents 5f44549 + 7511585 commit d8025be
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 254 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Build docker:
- name: Build named dockerfile
Expand All @@ -21,9 +28,9 @@ jobs:
- name: Test docker build
run: |
docker run \
-v $PWD/test/sh:/build/test.sh \
-v $PWD/test.sh:/build/test.sh \
--rm wemake-services/wemake-dind:latest \
sh /build/test.sh
bash /build/test.sh
deploy:
if: "github.event_name == 'push' && github.repository == 'wemake-services/wemake-dind'"
Expand All @@ -33,7 +40,7 @@ jobs:

steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand All @@ -47,10 +54,10 @@ jobs:
with:
images: wemakeservices/wemake-dind
tags: |
# Produce versioned docker tag on git tag:
type=ref,event=tag
# Set latest tag for default branch:
type=raw,value=latest,enable={{is_default_branch}}
# Produce versioned docker tag on git tag:
type=ref,event=tag
# Set latest tag for default branch:
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM docker:24.0
LABEL maintainer="[email protected]"
LABEL vendor="wemake.services"

ENV PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_DEFAULT_TIMEOUT=100

# Installing system deps:
RUN apk update && apk upgrade \
&& apk add --no-cache \
Expand Down
1 change: 0 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@

dump-env
docker-image-size-limit
docker-compose
wheel
Loading

0 comments on commit d8025be

Please sign in to comment.