mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-03 16:18:48 +00:00
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-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Login to Packages Container registry
|
|
uses: docker/login-action@v2
|
|
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
|