fix(ci): correct actions/checkout, docker/login-action, and github-tag-action SHAs
This commit is contained in:
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@df4cb1c069e1874edd3143118844c72031235010 # v6
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
- name: Hadolint
|
- name: Hadolint
|
||||||
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
|
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
needs: lint
|
needs: lint
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@df4cb1c069e1874edd3143118844c72031235010 # v6
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: docker build -t ci-image:${{ github.sha }} .
|
run: docker build -t ci-image:${{ github.sha }} .
|
||||||
- name: Save image
|
- name: Save image
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@df4cb1c069e1874edd3143118844c72031235010 # v6
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: ChristopherHX/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # main
|
uses: ChristopherHX/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # main
|
||||||
with:
|
with:
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@df4cb1c069e1874edd3143118844c72031235010 # v6
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
- name: Load image
|
- name: Load image
|
||||||
run: docker load < image.tar
|
run: docker load < image.tar
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@e92390c5fb421da1463c202d90fedabe47eede95 # v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
docker push jcabillot/crond:latest
|
docker push jcabillot/crond:latest
|
||||||
- name: Bump version and push tag
|
- name: Bump version and push tag
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
uses: anothrNick/github-tag-action@4ed44965e0dbd6c1f5a8d1c2b8b40c86275e9e51 # v1.75.0
|
uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
DEFAULT_BUMP: patch
|
DEFAULT_BUMP: patch
|
||||||
|
|||||||
Reference in New Issue
Block a user