Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Jul 1, 2024
1 parent ded2935 commit b4e5ec2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ on:
branches:
- master

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

permissions:
packages: write
pages: write
id-token: write
contents: read

env:
GIT_LFS_SKIP_SMUDGE: 1

Expand All @@ -22,24 +32,24 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
version: v0.9.1
- name: Login to private registry
uses: docker/login-action@v1
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.REGISTRY_URL }}/namada-faucet
images: ghcr.io/namada-faucet
tags: |
type=schedule
type=ref,event=branch
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# use the default dart image as the build image
FROM rust:1.70 AS builder
FROM rust:1.78 AS builder

# copy the current folder into the build folder
COPY . /app
Expand Down

0 comments on commit b4e5ec2

Please sign in to comment.