Create docker-image.yml

This commit is contained in:
Peter Dave Hello 2022-03-15 00:23:19 +08:00 committed by GitHub
parent 7c34d35ea2
commit 7f25b23aa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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