Skip to content

Commit

Permalink
Bumped github actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxemann96 committed May 4, 2023
1 parent 6a8d24d commit 198ba40
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,36 @@ name: ci
on:
push:
branches:
- 'main'
- "main"

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to DockerHub
uses: docker/login-action@v1
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
tags: flashspys/nginx-static:latest
-
name: Push Image to multiple registries
uses: akhilerm/tag-push-action@v2.0.0
- name: Push Image to multiple registries
uses: akhilerm/tag-push-action@v2.1.0
with:
src: docker.io/flashspys/nginx-static:latest
dst: ghcr.io/docker-nginx-static/nginx-static:latest

0 comments on commit 198ba40

Please sign in to comment.