chore(main): release v0.2.2 #8323
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
pull_request_target: | |
types: | |
- labeled | |
merge_group: | |
release: | |
types: created | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
docker-turbo: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
outputs: | |
trigger: ${{ steps.turbo.outputs.trigger }} | |
steps: | |
- name: Turbo Trigger | |
id: turbo | |
uses: wallet-rs/wallet-rs/.github/actions/turbo-trigger@main | |
with: | |
workspace: "@lightdotso/crates" | |
docker-build: | |
runs-on: ubuntu-latest | |
if: needs.docker-turbo.outputs.trigger == 'true' && github.event_name != 'release' || startsWith(github.ref, 'refs/tags/@lightdotso/bin') && github.event_name == 'release' | |
needs: | |
- docker-turbo | |
timeout-minutes: 120 | |
permissions: | |
contents: read | |
steps: | |
- name: Fetch Head | |
uses: actions/checkout@v4 | |
- name: Make Install | |
run: | | |
make install | |
- name: Docker Qemu Setup | |
uses: docker/setup-qemu-action@v3 | |
- name: Docker Buildx Setup | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker Metadata | |
uses: docker/metadata-action@v5 | |
id: meta | |
with: | |
images: | | |
ghcr.io/LightDotSo/LightDotSo | |
labels: | | |
org.opencontainers.image.title=LightDotSo | |
org.opencontainers.image.description=LightDotSo/LightDotSo | |
org.opencontainers.image.source=https://github.com/LightDotSo/LightDotSo | |
tags: | | |
type=raw,value=latest,enable={{is_default_branch}} | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=sha | |
type=sha,format=long | |
- name: Docker Login | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.BOT_TOKEN }} | |
- name: Docker Build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
# push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/@lightdotso/bin') }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-args: | | |
AWS_ACCESS_KEY_ID=${{ secrets.SCCACHE_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY=${{ secrets.SCCACHE_SECRET_ACCESS_KEY }} | |
SCCACHE_ENDPOINT=${{ secrets.SCCACHE_ENDPOINT }} | |
TURBO_API=${{ secrets.TURBO_API }} | |
TURBO_REMOTE_CACHE_SIGNATURE_KEY=${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | |
TURBO_TEAM=${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN=${{ secrets.TURBO_TOKEN }} | |
- name: Docker List | |
run: | | |
docker image ls | |
docker-lint: | |
runs-on: ubuntu-latest | |
if: needs.docker-turbo.outputs.trigger == 'true' | |
needs: | |
- docker-turbo | |
timeout-minutes: 90 | |
steps: | |
- name: Fetch Head | |
uses: actions/checkout@v4 | |
- name: Run Hadolint | |
uses: hadolint/hadolint-action@v3.1.0 | |
with: | |
dockerfile: Dockerfile | |
docker-check: | |
if: always() | |
needs: | |
- docker-turbo | |
- docker-build | |
- docker-lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Check All Green | |
uses: re-actors/alls-green@release/v1 | |
with: | |
allowed-skips: docker-build,docker-lint | |
jobs: ${{ toJSON(needs) }} |