Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Separate step to deploy readme for easy troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
erno1978 committed Apr 13, 2024
1 parent 1596f91 commit e28b9d7
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 44 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,3 @@ jobs:
tags: ictu/zap2docker-weekly:latest
secrets: |
"github_token=${{ secrets.DOCKERHUB_TOKEN }}"
- uses: actions/checkout@v4

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ictu/zap2docker-weekly:latest
22 changes: 22 additions & 0 deletions .github/workflows/docker-readme.yml
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
72 changes: 36 additions & 36 deletions .github/workflows/main.yml
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/

0 comments on commit e28b9d7

Please sign in to comment.