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

Commit

Permalink
临时测试
Browse files Browse the repository at this point in the history
  • Loading branch information
lc6464 committed Dec 6, 2023
1 parent 7d92cc6 commit 1b30557
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/temp-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Docker Image & Pack Source Code

on:
push:

# git tag -a v1.0.0
# git push origin v1.0.0

env:
IMAGE_NAME: baiduwp-php

jobs:
build_and_upload:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Parse version from tag name
run: echo "VERSION=$(echo $GITHUB_REF | sed -n 's/refs\/tags\/v\(.*\)/\1/p')" >> $GITHUB_ENV

- name: Build Docker image
run: docker build . --file Dockerfile --tag ${{ env.IMAGE_NAME }}

- name: Log into Docker Hub
run: echo "${{ secrets.DOCKER_ACCESS_TOKEN }}" | docker login -u yuantuo666 --password-stdin

0 comments on commit 1b30557

Please sign in to comment.