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 c5602e7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 8 deletions.
33 changes: 25 additions & 8 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,34 @@ 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 GitHub Container Registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

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

all: pull push

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

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

0 comments on commit c5602e7

Please sign in to comment.