Skip to content

Commit

Permalink
Merge pull request #16 from iloveitaly/multi-platform
Browse files Browse the repository at this point in the history
multi platform automated docker builds
  • Loading branch information
yegor256 authored Jul 24, 2024
2 parents 5dd8394 + f83ec4e commit d479160
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 38 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,44 @@
# SOFTWARE.
---
name: docker
'on':
on:
push:
pull_request:

jobs:
docker:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: docker build . -t home
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
yegor256/squid-proxy
# yamllint disable rule:line-length
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=ref,event=branch
type=ref,event=pr
type=sha
# yamllint enable rule:line-length

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
35 changes: 0 additions & 35 deletions .rultor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ LABEL version="0.0.0"
RUN apt-get update -y --fix-missing \
&& apt-get -y install --no-install-recommends \
squid=6.6-1ubuntu5 \
apache2-utils=2.4.58-1ubuntu8.1 \
apache2-utils=2.4.58-1ubuntu8 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ credentials. For example:
curl -vvv --proxy http://jeffrey:[email protected]:8081 https://google.com/
```

Or, with httpie:

```shell
http --proxy=http:http://jeffrey:[email protected]:8081 https://google.com/
```

BTW, the proxy is [anonymous](https://en.wikipedia.org/wiki/Anonymizer).
Once it's up and running, you can check whether it's visible,
[here](http://amibehindaproxy.com/). It also doesn't store any logs and doesn't
Expand Down

0 comments on commit d479160

Please sign in to comment.