Update build-push-docker.yml
This commit is contained in:
21
.github/workflows/build-push-docker.yml
vendored
21
.github/workflows/build-push-docker.yml
vendored
@@ -124,11 +124,30 @@ jobs:
|
||||
cat /proc/cpuinfo
|
||||
echo "--------------------------------------"
|
||||
|
||||
- name: Setup Maven settings.xml
|
||||
uses: whelk-io/maven-settings-xml-action@v11
|
||||
with:
|
||||
servers:
|
||||
'[
|
||||
{
|
||||
"id": "github",
|
||||
"username": "${env.GITHUB_USERNAME}",
|
||||
"password": "${env.GITHUB_TOKEN}"
|
||||
}
|
||||
]'
|
||||
|
||||
- name: Publish to GitHub Packages Apache Maven
|
||||
run: mvn deploy
|
||||
env:
|
||||
GITHUB_USERNAME: ${{ secrets.GITHUB_USERNAME }}
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
BUILD_ENV: 'github-actions'
|
||||
|
||||
- name: Upload the Agent Jar
|
||||
uses: actions/upload-artifact@v3.1.1
|
||||
with:
|
||||
# Artifact name
|
||||
name: octopus-agent-{{date 'YYYY-MM-DD-HH-mm'}}
|
||||
name: octopus-agent-"{{date 'YYYY-MM-DD-HH-mm'}}"
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: ./agent/target/agent-*.jar
|
||||
# The desired behavior if no files are found using the provided path.
|
||||
|
||||
Reference in New Issue
Block a user