This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate step to deploy readme for easy troubleshooting
- Loading branch information
Showing
3 changed files
with
58 additions
and
44 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Docker Hub Readme | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- README.md | ||
- .github/workflows/dockerhub-readme.yml | ||
|
||
jobs: | ||
dockerHubDescription: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Docker Hub Readme | ||
uses: peter-evans/dockerhub-description@v4 | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | ||
DOCKERHUB_REPOSITORY: ictu/zap2docker-weekly |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
# # This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
# name: CI | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ master ] | ||
# # Controls when the action will run. | ||
# on: | ||
# # Triggers the workflow on push or pull request events but only for the master branch | ||
# push: | ||
# branches: [ '*' ] | ||
# pull_request: | ||
# branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# # Allows you to run this workflow manually from the Actions tab | ||
# workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
# # A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
# jobs: | ||
# # This workflow contains a single job called "build" | ||
# build: | ||
# # The type of runner that the job will run on | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-latest] | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Check podman version | ||
run: podman --version | ||
- name: Cache Container images | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.local/share/containers/storage | ||
key: ${{ runner.os }}-cache-v1-${{ hashFiles('Dockerfile') }} | ||
restore-keys: ${{ runner.os }}-restore | ||
- name: Build container | ||
run: podman build -t ictu/zap2docker-weekly . | ||
- name: change accessibility for cache | ||
run: podman unshare chmod -R 755 ~/.local/share/containers/storage/ | ||
# # Steps represent a sequence of tasks that will be executed as part of the job | ||
# steps: | ||
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
# - uses: actions/checkout@v2 | ||
# - name: Check podman version | ||
# run: podman --version | ||
# - name: Cache Container images | ||
# uses: actions/cache@v2 | ||
# with: | ||
# path: ~/.local/share/containers/storage | ||
# key: ${{ runner.os }}-cache-v1-${{ hashFiles('Dockerfile') }} | ||
# restore-keys: ${{ runner.os }}-restore | ||
# - name: Build container | ||
# run: podman build -t ictu/zap2docker-weekly . | ||
# - name: change accessibility for cache | ||
# run: podman unshare chmod -R 755 ~/.local/share/containers/storage/ | ||
|