diff --git a/.github/workflows/backup-sealed-secrets-keys.yml b/.github/workflows/backup-sealed-secrets-keys.yml deleted file mode 100644 index f42da0b..0000000 --- a/.github/workflows/backup-sealed-secrets-keys.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Build backup-sealed-secrets-keys - -on: - push: - branches: [ "*" ] - paths: 'backup-sealed-secrets-keys/**' - tags: [ "v*" ] - -jobs: - build-and-push: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Generate container metadata - id: meta - uses: docker/metadata-action@v3 - with: - images: ghcr.io/obmondo/backup-sealed-secrets-keys - tags: | - type=ref,event=branch,enable=${{ !endsWith(github.ref, github.event.repository.default_branch) }} - type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} - type=ref,event=tag - flavor: | - latest=false - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build & push container image - id: docker_build - uses: docker/build-push-action@v2 - with: - file: "./backup-sealed-secrets-keys/Dockerfile" - context: . - labels: ${{ steps.meta.outputs.labels }} - push: true - tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/logical-backup.yml b/.github/workflows/logical-backup.yml deleted file mode 100644 index 94c9e06..0000000 --- a/.github/workflows/logical-backup.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Build Logical backup - -on: - push: - branches: [ "-" ] - tags: [ "v*" ] - -jobs: - build-and-push: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Get all changed docker and shell script files - id: changed-files - uses: tj-actions/changed-files@v44 - with: - files: | - **/Dockerfile - - name: List all changed files - env: - ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} - run: | - echo "::set-output name=changed-files::$(echo "$ALL_CHANGED_FILES" | tr '\n' ',')" - - name: Convert output to array - id: convert-to-array - run: | - IFS=',' read -r -a CHANGED_FILES_ARRAY <<< "${{ steps.list-changed-files.outputs.changed-files }}" - echo "::set-output name=changed-files-array::${CHANGED_FILES_ARRAY[@]}" - - name: Generate container metadata - id: meta - uses: docker/metadata-action@v5.5.1 - with: - images: ghcr.io/obmondo/${{ steps.convert-to-array.outputs.changed-files-array}} - tags: | - type=ref,event=branch,enable=${{ !endsWith(github.ref, github.event.repository.default_branch) }} - type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} - type=ref,event=tag - flavor: | - latest=false - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build & push container image - id: docker_build - uses: docker/build-push-action@v5.3.0 - with: - file: "${{ steps.changed-files.outputs.all_changed_files }}" - context: . - labels: ${{ steps.meta.outputs.labels }} - push: true - tags: ${{ steps.meta.outputs.tags }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 - with: - images: ${{ matrix.image }} \ No newline at end of file