Update dependency org.assertj:assertj-core to v3.27.1 #886
Workflow file for this run
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: ci | |
concurrency: ci | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Build and push Docker image | |
uses: docker/[email protected] | |
with: | |
context: . | |
load: true | |
tags: tenjaa/concourse-github-app-token:${{ github.sha }} | |
- name: Save image | |
run: | | |
docker save tenjaa/concourse-github-app-token:${{ github.sha }} > concourse-github-app-token.tar | |
- name: Pass image to next job | |
uses: actions/[email protected] | |
with: | |
name: image | |
path: concourse-github-app-token.tar | |
e2e: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
name: image | |
- run: | | |
docker load < concourse-github-app-token.tar | |
- name: test | |
run: ./e2e.sh | |
env: | |
APP_ID: ${{ secrets.app_id }} | |
INSTALLATION_ID: ${{ secrets.installation_id }} | |
PRIVATE_KEY: ${{ secrets.private_key }} | |
release: | |
needs: [e2e] | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
name: image | |
- run: | | |
docker load < concourse-github-app-token.tar | |
- uses: docker/[email protected] | |
with: | |
username: tenjaa | |
password: ${{ secrets.docker_password }} | |
- name: Login to Public ECR | |
uses: docker/[email protected] | |
with: | |
registry: public.ecr.aws | |
username: ${{ secrets.ECR_ACCESS_KEY_ID }} | |
password: ${{ secrets.ECR_SECRET_ACCESS_KEY }} | |
- name: Login to GitHub Container Registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update latest tag | |
run: | | |
docker tag tenjaa/concourse-github-app-token:${GITHUB_SHA} tenjaa/concourse-github-app-token:latest | |
docker tag tenjaa/concourse-github-app-token:${GITHUB_SHA} public.ecr.aws/f1s7y4s6/concourse-github-app-token:latest | |
docker tag tenjaa/concourse-github-app-token:${GITHUB_SHA} ghcr.io/tenjaa/concourse-github-app-token:latest | |
docker push tenjaa/concourse-github-app-token:latest | |
docker push public.ecr.aws/f1s7y4s6/concourse-github-app-token:latest | |
docker push ghcr.io/tenjaa/concourse-github-app-token:latest |