Compare commits

...

1 commit

Author SHA1 Message Date
Peter Dave Hello
7f25b23aa2
Create docker-image.yml 2022-03-15 00:23:19 +08:00

36
.github/workflows/docker-image.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Docker Image CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v2.9.0
with:
push: true
tags:
- peterdavehello/tor-socks-proxy:latest
- ghcr.io/peterdavehello/tor-socks-proxy:latest