Skip to content

Commit

Permalink
update github action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Aug 30, 2024
1 parent 949dac2 commit 19e55f7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set ENV variables
run: |
cat .env >> $GITHUB_ENV
Expand All @@ -15,40 +15,40 @@ jobs:
echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
echo "DOCKER_TAG=$(echo ${GITHUB_REPOSITORY#*/}):$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.4.1
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Cache Docker layers
uses: actions/cache@v3.2.6
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{runner.os}}-buildx-${{github.sha}}
restore-keys: ${{runner.os}}-buildx-
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
registry: ${{env.REGISTRY}}
username: ${{env.REPO_OWNER}}
password: ${{secrets.CR_PAT}}
- name: Build and push
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: ${{env.REGISTRY}}/${{env.REPO_OWNER}}/${{env.DOCKER_TAG}}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Docker-compose pull
run: docker-compose pull
- name: Docker-compose up
- name: Docker compose pull
run: docker compose pull
- name: Docker compose up
run: |
docker-compose -f docker-compose.yaml up -d
docker compose -f docker-compose.yaml up -d
- name: Execute tests
run: |
docker-compose exec -T paper_trail mix test test/paper_trail
docker-compose run paper_trail mix test test/version
docker-compose run paper_trail mix test test/uuid
STRING_TEST=true docker-compose run paper_trail mix test test/uuid
docker compose exec -T paper_trail mix test test/paper_trail
docker compose run paper_trail mix test test/version
docker compose run paper_trail mix test test/uuid
STRING_TEST=true docker compose run paper_trail mix test test/uuid
- name: Check Formatted
run: docker-compose run paper_trail mix format --check-formatted
run: docker compose run paper_trail mix format --check-formatted

0 comments on commit 19e55f7

Please sign in to comment.