mirror of
https://github.com/Infisical/ansible-collection.git
synced 2025-08-03 20:54:27 -07:00
feat: ansible docker image
This commit is contained in:
parent
510e8c666f
commit
89ab21f235
3 changed files with 59 additions and 8 deletions
40
.github/workflows/distribute.yaml
vendored
40
.github/workflows/distribute.yaml
vendored
|
@ -2,19 +2,45 @@
|
|||
name: Deploy Collection
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
push:
|
||||
tags:
|
||||
- "*.*.*"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
release-galaxy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Get the version name from the tags
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
||||
- name: Build and Deploy Collection
|
||||
uses: artis3n/ansible_galaxy_collection@v2
|
||||
with:
|
||||
api_key: "${{ secrets.GALAXY_API_KEY }}"
|
||||
galaxy_version: "${{ env.RELEASE_VERSION }}"
|
||||
galaxy_version: "${{ github.ref_name }}"
|
||||
|
||||
release-docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: 🔧 Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: 🔧 Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: 🐋 Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
build-args: VERSION=${{ github.ref_name }}
|
||||
context: docker
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
infisical/ansible-collection:latest
|
||||
infisical/ansible-collection:${{ github.ref_name }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue