-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 1.01 KB
/
ssh-over-tor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Automation Script
on: [push]
jobs:
pipeline:
name: Pipeline
runs-on: ubuntu-20.04
steps:
- name: Initiating
uses: actions/checkout@v2.4.0
- name: Tags # To have versioned TAG add: ,${DOCKER_IMAGE}:${{ github.sha }}
id: tags
run: |
DOCKER_IMAGE='ghcr.io/${{ github.actor }}/ssh-over-tor'
TAGS="${DOCKER_IMAGE}:latest"
echo ::set-output name=tags::${TAGS}
- name: QEMU
uses: docker/setup-qemu-action@v1.2.0
- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1.6.0
- name: Login
uses: docker/login-action@v1.10.0
with:
username: ${{ github.actor }}
password: ${{ github.token }}
registry: ghcr.io
- name: Build
uses: docker/build-push-action@v2.7.0
with:
context: .
file: Dockerfile
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: ${{ steps.tags.outputs.tags }}