Skip to content

Commit

Permalink
testing docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leviathan747 committed Mar 1, 2024
1 parent cb3f3fc commit 06e3178
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,35 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Create Conan Cache
run: docker volume create ConanCache

- name: Cache Artifacts
id: cache-primes
uses: actions/cache@v3
with:
path: /var/lib/docker/volumes/ConanCache
key: $(docker compose -f bin/docker-compose.yml run --rm bash conan profile show)

- name: Generate MASL
run: |
cd models/
./gen_all.sh
# - name: Create Conan Cache
# run: docker volume create ConanCache
#
# - name: Cache Artifacts
# id: cache-primes
# uses: actions/cache@v3
# with:
# path: /var/lib/docker/volumes/ConanCache
# key: $(docker compose -f bin/docker-compose.yml run --rm bash conan profile show)
#
# - name: Generate MASL
# run: |
# cd models/
# ./gen_all.sh
#
- name: Load .env
uses: aarcangeli/load-dotenv@v1.0.0
id: dotenv
uses: falti/dotenv-action@v1.1
with:
path: bin/
path: bin/.env
log-variables: true
export-variables: true

- name: Build and Publish
env: MUNIN_VERSION=${{ github.ref_name }}
run: |
cd models/
./publish_all.sh
#
# - name: Build and Publish
# env: MUNIN_VERSION=${{ github.ref_name }}
# run: |
# cd models/
# ./publish_all.sh

- uses: docker/setup-buildx-action@v2

Expand All @@ -56,6 +60,8 @@ jobs:
uses: docker/build-push-action@v3
with:
context: bin/docker
build-args: MASL_VERSION=${MASL_VERSION},MUNIN_VERSION=${{ github.ref_name }}
build-args: |
MASL_VERSION=${{ steps.dotenv.outputs.masl_version }}
MUNIN_VERSION=${{ github.ref_name }}
tags: ${{ steps.meta.outputs.tags }}
push: true

0 comments on commit 06e3178

Please sign in to comment.