Backup #1
This file contains hidden or 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: Backup | |
on: | |
workflow_dispatch: | |
env: | |
IMAGE_NAME: backup | |
WORKING_DIRECTORY: ./ | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to Artifactory | |
uses: docker/login-action@v1 | |
with: | |
registry: artifacts.developer.gov.bc.ca | |
username: ${{ secrets.ARTIFACTORY_USERNAME }} | |
password: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
- name: Checkout Backup Container Repo | |
id: gitops | |
uses: actions/checkout@v4 | |
with: | |
repository: BCDevOps/backup-container.git | |
ref: 2.9.0 | |
- name: Docker Build Backup Image | |
run: | | |
cd docker | |
docker build --tag ${{ env.IMAGE_NAME }} . | |
docker tag ${{ env.IMAGE_NAME }} artifacts.developer.gov.bc.ca/ccb6-images/${{ env.IMAGE_NAME }}:latest | |
docker push artifacts.developer.gov.bc.ca/ccb6-images/${{ env.IMAGE_NAME }} | |