-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge to master publish win packages (#83)
* Use simple playbook to upload windows packages
- Loading branch information
1 parent
df3fc62
commit dc0477e
Showing
8 changed files
with
60 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
- name: Publish linux packages to staging | ||
uses: newrelic/[email protected] | ||
env: | ||
TAG: ${{ needs.get-release-tag.outputs.tag }}" | ||
TAG: ${{ needs.get-release-tag.outputs.tag }} | ||
GPG_MAIL: ${{ secrets.LOGGING_GPG_MAIL }} | ||
GPG_PASSPHRASE: ${{ secrets.OHAI_GPG_PASSPHRASE }} | ||
GPG_PRIVATE_KEY_BASE64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} # base64 encoded | ||
|
@@ -62,3 +62,13 @@ jobs: | |
# used for signing package stuff | ||
gpg_passphrase: ${{ env.GPG_PASSPHRASE }} | ||
gpg_private_key_base64: ${{ env.GPG_PRIVATE_KEY_BASE64 }} | ||
# TODO: fill with prod parameters when ready | ||
#- name: Publish linux packages to production | ||
|
||
publish-windows: | ||
name: Publish windows packages to logging's production bucket | ||
needs: get-release-tag | ||
uses: ./.github/workflows/run_task.yml | ||
with: | ||
container_make_target: "ansible/upload-win-packages PR_TAG=${{ needs.get-release-tag.outputs.tag }}" | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
include ../Ansible.common.mk | ||
|
||
.DEFAULT_GOAL := upload-win-packages | ||
|
||
.PHONY: generateMatrix | ||
generateMatrix: | ||
$(MAKE) -C ../../versions generateMatrices | ||
|
||
.PHONY: upload-win-packages | ||
upload-win-packages: ansible/dependencies generateMatrix | ||
ansible-playbook $(ANSIBLE_FOLDER)/playbook.yml -i $(ANSIBLE_INVENTORY) | ||
|
||
.PHONY: clean | ||
clean: ansible/clean |
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,26 @@ | ||
- name: Upload windows packages | ||
hosts: localhost | ||
vars: | ||
pr_tag: "{{ lookup('ansible.builtin.env', 'PR_TAG') }}" | ||
windows_bucket: logging-fb-windows-packages | ||
windows_matrix: "{{ lookup('file','../../versions/windowsMatrix.json') | from_json }}" | ||
roles: | ||
- andrewrothstein.gh | ||
tasks: | ||
- name: Set windows artifact names | ||
set_fact: | ||
windows_artifacts: "{{ windows_matrix | community.general.json_query('[*].targetPackageName') }}" | ||
|
||
- name: Download windows artifacts from github pre_release | ||
ansible.builtin.command: "gh release download {{ pr_tag }} --pattern '{{ item }}' --skip-existing" | ||
loop: "{{ windows_artifacts }}" | ||
|
||
- name: Upload windows artifacts | ||
amazon.aws.s3_object: | ||
bucket: "{{ windows_bucket }}" | ||
object: "{{ item }}" | ||
src: "{{ item }}" | ||
mode: put | ||
permission: public-read | ||
purge_tags: false | ||
loop: "{{ windows_artifacts }}" |
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,5 @@ | ||
collections: | ||
- name: community.aws | ||
- name: community.general | ||
roles: | ||
- name: andrewrothstein.gh |
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