mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-06 05:08:29 +00:00
Refs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value Signed-off-by: Rui Chen <rui@chenrui.dev>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: ci-link-checker-image
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/website_link_checker/**'
|
|
branches:
|
|
- "master"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: .github/website_link_checker
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Login to Packages Container registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- run: echo "TODAY=$(date +"%Y.%m.%d")" >> $GITHUB_ENV
|
|
- name: build ci-link-checker:${{env.TODAY}} image
|
|
run: |
|
|
docker build -t ghcr.io/runatlantis/ci-link-checker:${{env.TODAY}} .
|
|
- name: publish ci-link-checker:${{env.TODAY}} image
|
|
run: |
|
|
docker push ghcr.io/runatlantis/ci-link-checker:${{env.TODAY}}
|
|
docker tag ghcr.io/runatlantis/ci-link-checker:${{env.TODAY}} ghcr.io/runatlantis/ci-link-checker:latest
|
|
docker push ghcr.io/runatlantis/ci-link-checker:latest
|