-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate the litmusOcisSpacesDav test from Drone to GitHub Actions
- Loading branch information
1 parent
d4404b0
commit d9b3fb4
Showing
15 changed files
with
240 additions
and
164 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,42 @@ | ||
name: Docker | ||
on: | ||
workflow_call: | ||
inputs: | ||
file: | ||
required: true | ||
type: string | ||
tag: | ||
type: string | ||
load: | ||
type: boolean | ||
push: | ||
type: boolean | ||
|
||
jobs: | ||
docker: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.1.0 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to Docker Hub | ||
if: ${{ inputs.push }} | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build ${{ (inputs.push && 'and push') || '' }} ${{ inputs.tag }} Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: ${{ inputs.file }} | ||
tags: ${{ (inputs.push && format('{0}/', secrets.DOCKERHUB_ORGANIZATION)) || '' }}${{ inputs.tag }} | ||
load: ${{ inputs.load }} | ||
push: ${{ inputs.push }} | ||
- name: Upload ${{ inputs.tag }} Docker image to artifacts | ||
uses: ishworkh/docker-image-artifact-upload@v1 | ||
if: ${{ inputs.load }} | ||
with: | ||
image: ${{ inputs.tag }} | ||
retention_days: '1' |
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 |
---|---|---|
|
@@ -5,6 +5,8 @@ on: | |
- "go.mod" | ||
- "go.sum" | ||
push: | ||
tags-ignore: | ||
- "*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
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
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
Oops, something went wrong.