Skip to content

Commit

Permalink
Build on master push
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jan 11, 2022
1 parent ec57997 commit 60d4090
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 26 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/on-master-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build on master push

on:
push:
branches:
- master

env:
DOCKER_CLI_EXPERIMENTAL: enabled

jobs:
build:
name: Build and push Docker image
runs-on: ubuntu-18.04
env:
TOR_VERSION: 0.4.6.8@sha256:c262923ffd0bd224a4a4123cf1c88eea11e2314566b7b7e8a1f77969deeb0208
steps:
- name: Login to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

- name: Checkout project
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Setup Docker buildx action
uses: docker/setup-buildx-action@v1

- name: Run Docker buildx
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg TOR_VERSION=$TOR_VERSION \
--tag ${{ secrets.DOCKER_HUB_USER }}/tor-server:$TOR_VERSION \
--push .
25 changes: 0 additions & 25 deletions .github/workflows/on-push.yml

This file was deleted.

4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM lncm/tor:0.4.6.8
ARG TOR_VERSION=0.4.6.8@sha256:c262923ffd0bd224a4a4123cf1c88eea11e2314566b7b7e8a1f77969deeb0208

FROM lncm/tor:$TOR_VERSION

# Install s6
USER root
Expand Down

0 comments on commit 60d4090

Please sign in to comment.