chore(deps): update docker/build-push-action action to v6 (#341) #84
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
name: Continuous Delivery | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'Dockerfile' | |
- '.github/workflows/continuous-delivery.yml' | |
workflow_dispatch: | |
jobs: | |
PublishArchAngel: | |
name: Publish ArchAngel image to container registries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3.3.0 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3.2.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push ArchAngel Docker image | |
uses: docker/build-push-action@v6.1.0 | |
with: | |
push: true | |
context: ./ | |
file: Dockerfile | |
tags: ghcr.io/favware/archangel:latest | |
UpdateOnServer: | |
name: Update running container on server | |
runs-on: ubuntu-latest | |
needs: PublishArchAngel | |
steps: | |
- name: Update container on server | |
uses: favware/ssh-remote-action@v1 | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
port: ${{ secrets.SSH_PORT }} | |
key: ${{ secrets.SSH_KEY }} | |
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }} | |
username: ${{ secrets.SSH_USERNAME }} | |
command: ${{ secrets.SSH_COMMAND }} | |
silent: true |