59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
name: Main
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
hadolint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
|
|
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
|
|
continue-on-error: true
|
|
with:
|
|
dockerfile: Dockerfile
|
|
failure-threshold: error
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
needs: hadolint
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
|
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5
|
|
- name: Build image
|
|
run: docker build -t ci-image:${{ github.sha }} .
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
needs: test
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
|
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5
|
|
- uses: docker/build-push-action@f9f3042e7f2789586610d6e8b85c8f03e5195baf
|
|
with:
|
|
context: .
|
|
tags: jcabillot/unrar:${{ github.sha }}
|
|
push: false
|
|
load: true
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
tag:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Configure git auth
|
|
run: |
|
|
git remote set-url origin "https://x-access-token:${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}@scm.cabillot.eu/perso/unrar-arm64.git"
|
|
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}
|
|
DEFAULT_BUMP: patch
|
|
RELEASE_BRANCHES: master
|
|
WITH_V: true
|
|
GIT_API_TAGGING: false
|