Create gcr.io_mirror

This commit is contained in:
AnJia 2021-12-27 18:15:51 +08:00 committed by GitHub
parent 9fe7cb417a
commit bd9846f74b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
.github/workflows/gcr.io_mirror vendored Normal file
View File

@ -0,0 +1,24 @@
name: gcr.io_mirror
on:
issues:
types: [opened]
label:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)