Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
wxxxcxx committed Jun 30, 2022
1 parent b0c5818 commit 6274b05
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Docker Image

on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
DOCKER_REPOSITORY: meetcw/ms-ra-forwarder

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Docker Setup QEMU
uses: docker/[email protected]

- name: Docker Setup Buildx
uses: docker/[email protected]

- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Create Docker image tag
run: echo DATE_TAG=$(date +%y%m%d%H%M%S) >> $GITHUB_ENV

- name: Push the Docker image
uses: docker/[email protected]
with:
push: true
tags: |
${{ env.DOCKER_REPOSITORY }}:${{ env.DATE_TAG }}
${{ env.DOCKER_REPOSITORY }}:latest

0 comments on commit 6274b05

Please sign in to comment.