Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
zoumingzhe committed Jun 7, 2024
1 parent 05426b2 commit 410d79a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -20,17 +20,30 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

permissions:
actions: write
packages: read

# 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@v4

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# # Runs a single command using the runners shell
# - name: Run a one-line script
# run: echo Hello, world!

# # Runs a set of commands using the runners shell
# - name: Run a multi-line script
# run: |
# echo Add other actions to build,
# echo test, and deploy your project.

- name: Login to GHCR
run: echo $GHCR_TOKEN | docker login --username=podboy --password-stdin ghcr.io

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
# # Pull image
# - name: Run a multi-line script
# run: |
# make pull
# make push
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MAKEFLAGS += --always-make

all: pull push

pull:
docker pull docker.io/mingzhebaosheng/directory-lister:4.0.0

push:
docker push docker.io/mingzhebaosheng/directory-lister:4.0.0 ghcr.io/podboy/directory-lister:4.0.0

0 comments on commit 410d79a

Please sign in to comment.