Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Update version, fix github outputs #20

Merged
merged 1 commit into from
Dec 12, 2023
Merged
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
12 changes: 7 additions & 5 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v2

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

- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand All @@ -28,22 +30,22 @@ jobs:
id: tag
if: ${{ startsWith(github.ref, 'refs/tags') }}
run: |
echo "name=BUILD_ID::${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT"
echo "BUILD_ID=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT"

- name: Generate build ID for Flux Image Automation
id: build
if: ${{ !startsWith(github.ref, 'refs/tags') }}
run: |
sha=$(git rev-parse --short HEAD)
ts=$(date +%s%N | cut -b1-13)
echo "name=BUILD_ID::${sha}-${ts}" >> "$GITHUB_OUTPUT"
echo "BUILD_ID=${sha}-${ts}" >> "$GITHUB_OUTPUT"

- name: Auth to google artifact registry
run: |
gcloud auth configure-docker us-docker.pkg.dev -q

- name: Build and push Docker image
uses: docker/build-push-action@v2.7.0
uses: docker/build-push-action@v5
if: ${{ startsWith(github.ref, 'refs/tags') }}
with:
push: true
Expand All @@ -56,7 +58,7 @@ jobs:
no-cache: true

- name: Build and push Docker image
uses: docker/build-push-action@v2.7.0
uses: docker/build-push-action@v5
if: ${{ !startsWith(github.ref, 'refs/tags') }}
with:
push: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_publish_tee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: |
sha=$(git rev-parse --short HEAD)
ts=$(date +%s%N | cut -b1-13)
echo "name=BUILD_ID::${sha}-${ts}" >> "$GITHUB_OUTPUT"
echo "BUILD_ID=${sha}-${ts}" >> "$GITHUB_OUTPUT"

- name: Auth to google artifact registry
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: test Docker image build
uses: docker/build-push-action@v2.7.0
uses: docker/build-push-action@v5
with:
push: false
file: Dockerfile
Expand Down
Loading