Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 11 additions & 38 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,16 @@
name: Rust
name: Continuous Deployment

on:
push:
branches: [ "main" ]
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: adregistry.fnal.gov/applications/extapi-acsys
tags: |
# This is the default tag for the last commit of the default branch
type=edge
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=${{ github.run_number }},enable={{is_default_branch}}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to AD Registry, Harbor
uses: docker/login-action@v3
with:
registry: adregistry.fnal.gov
username: ${{ secrets.ADREGISTRY_USERNAME }}
password: ${{ secrets.ADREGISTRY_SECRET }}

- name: Building Docker image and pushing to adregistry
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
deploy:
uses: fermi-ad/.github/.github/workflows/rust-deployment.yaml@d9140f7d40e8cbb622927ae373c4b6a38d8576d9
secrets: inherit
permissions:
contents: read
with:
pull-git-submodules: true
references-internal-git-repo: true
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ env:

jobs:
check:
uses: fermi-ad/.github/.github/workflows/rust-integration.yaml@b5db5a6894d0da9a2c5c490b73b2431182d95cc9
uses: fermi-ad/.github/.github/workflows/rust-integration.yaml@2dd68f88d25662a51dc93bc5657900dab5c51063
secrets: inherit
permissions:
contents: write
pull-requests: write
with:
pull-git-submodules: true
references-internal-git-repo: true
Loading
Loading