Download go binary and verify signatures
This commit is contained in:
parent
bcb1fc0ad7
commit
8c04b25cfa
@ -72,38 +72,85 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: install gitea container
|
- name: download the gitea binary if it doesn't exist
|
||||||
community.docker.docker_image:
|
ansible.builtin.get_url:
|
||||||
name: gitea/gitea
|
url: https://dl.gitea.com/gitea/1.22.2/gitea-1.22.2-linux-amd64.asc
|
||||||
source: pull
|
dest: /home/ubuntu/hifadhi_kuu/gitea
|
||||||
pull:
|
|
||||||
platform: amd64
|
|
||||||
|
|
||||||
# - name: create network the docker container will run in
|
- name: download the gitea binary if it doesn't exist
|
||||||
# community.docker.docker_network:
|
ansible.builtin.get_url:
|
||||||
# name: "{{container_network}}"
|
url: https://dl.gitea.com/gitea/1.22.2/gitea-1.22.2-linux-amd64
|
||||||
|
dest: /home/ubuntu/hifadhi_kuu/gitea
|
||||||
|
checksum: sha256:https://dl.gitea.com/gitea/1.22.2/gitea-1.22.2-linux-amd64.sha256
|
||||||
|
|
||||||
- name: run and make persistant gitea container
|
- name: use shell command to execute a bunch of gpg commands to verify binary
|
||||||
community.docker.docker_container:
|
ansible.builtin.shell: |
|
||||||
name: gitea
|
gpg --keyserver keys.openpgp.org --recv 7C9E68152594688862D62AF62D9AE806EC1592E2
|
||||||
image: gitea/gitea
|
gpg --verify gitea-1.22.2-linux-amd64.asc gitea-1.22.2-linux-amd64
|
||||||
state: started
|
args:
|
||||||
restart_policy: always
|
chdir: /home/ubuntu/hifadhi_kuu/gitea
|
||||||
ports:
|
ignore_errors: true
|
||||||
- "3000:3000"
|
register: gpg_result
|
||||||
- "2222:2222"
|
|
||||||
env:
|
- name: display results of gpg verification for go binary
|
||||||
GITEA__database__DB_TYPE=postgres
|
ansible.builtin.debug:
|
||||||
GITEA__database__HOST=localhost:5432
|
var: gpg_result
|
||||||
GITEA__database__NAME=giteadb
|
|
||||||
GITEA__database__USER=gitea
|
|
||||||
GITEA__database__PASSWD="{{postgresql_password}}"
|
|
||||||
networks:
|
|
||||||
- name: "{{container_network}}"
|
|
||||||
volumes:
|
|
||||||
- ./data:/var/lib/gitea
|
|
||||||
- ./config:/etc/gitea
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
recreate: false
|
|
||||||
working_dir: "{{gitea_directory}}"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### BELOW will be deleted
|
||||||
|
# - name: install gitea container
|
||||||
|
#community.docker.docker_image:
|
||||||
|
#name: gitea/gitea
|
||||||
|
#source: pull
|
||||||
|
#pull:
|
||||||
|
#platform: amd64
|
||||||
|
|
||||||
|
## - name: create network the docker container will run in
|
||||||
|
## community.docker.docker_network:
|
||||||
|
## name: "{{container_network}}"
|
||||||
|
|
||||||
|
#- name: run and make persistant gitea container
|
||||||
|
#community.docker.docker_container:
|
||||||
|
#name: gitea
|
||||||
|
#image: gitea/gitea
|
||||||
|
#state: started
|
||||||
|
#restart_policy: always
|
||||||
|
#ports:
|
||||||
|
#- "3000:3000"
|
||||||
|
#- "2222:2222"
|
||||||
|
#env:
|
||||||
|
#GITEA__database__DB_TYPE=postgres
|
||||||
|
#GITEA__database__HOST=localhost:5432
|
||||||
|
#GITEA__database__NAME=giteadb
|
||||||
|
#GITEA__database__USER=gitea
|
||||||
|
#GITEA__database__PASSWD="{{postgresql_password}}"
|
||||||
|
#networks:
|
||||||
|
#- name: "{{container_network}}"
|
||||||
|
#volumes:
|
||||||
|
#- ./data:/var/lib/gitea
|
||||||
|
#- ./config:/etc/gitea
|
||||||
|
#- /etc/timezone:/etc/timezone:ro
|
||||||
|
#- /etc/localtime:/etc/localtime:ro
|
||||||
|
#recreate: false
|
||||||
|
#working_dir: "{{gitea_directory}}"
|
||||||
|
Loading…
Reference in New Issue
Block a user