Skip to content

Commit 0eda823

Browse files
committed
Remove scheduled latest push, update actions
1 parent 75635ae commit 0eda823

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

.github/workflows/docker-push.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Docker push
2-
run-name: Push docker tag ${{ inputs.version || 'latest (scheduled)' }}
2+
run-name: Push docker tag ${{ inputs.version }}
33
permissions:
44
contents: read
55
env:
6-
LOCALSTACK_VERSION: ${{ inputs.localstack-version || 'latest' }}
7-
LOCALSTACK_PERSIST_VERSION: ${{ inputs.version || 'latest' }}
6+
LOCALSTACK_VERSION: ${{ inputs.localstack-version }}
7+
LOCALSTACK_PERSIST_VERSION: ${{ inputs.version }}
88

99
on:
1010
workflow_dispatch:
@@ -18,9 +18,6 @@ on:
1818
description: Version of localstack to use as base image tag
1919
type: string
2020
required: true
21-
default: latest
22-
# schedule:
23-
# - cron: "30 18 * * *"
2421

2522
jobs:
2623
validation:
@@ -35,7 +32,7 @@ jobs:
3532
exit 1
3633
fi
3734
if: ${{ env.LOCALSTACK_PERSIST_VERSION != 'latest' }}
38-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v6
3936
- run: sudo -E python3 test.py
4037
- run: sudo -E docker compose logs
4138
if: ${{ failure() }}
@@ -45,31 +42,29 @@ jobs:
4542
runs-on: ubuntu-latest
4643
needs: validation
4744
steps:
48-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v6
4946
- name: Set semver tags
5047
id: tags
51-
uses: docker/metadata-action@v5
48+
uses: docker/metadata-action@v6
5249
with:
5350
images: |
5451
gresau/localstack-persist
55-
flavor: |
56-
latest=false
5752
tags: |
5853
type=raw,value=${{ env.LOCALSTACK_PERSIST_VERSION }},priority=1000
5954
type=semver,pattern={{major}}.{{minor}},value=${{ env.LOCALSTACK_PERSIST_VERSION }},enable=${{ env.LOCALSTACK_PERSIST_VERSION != 'latest' }}
6055
type=semver,pattern={{major}},value=${{ env.LOCALSTACK_PERSIST_VERSION }},enable=${{ env.LOCALSTACK_PERSIST_VERSION != 'latest' }}
6156
6257
- name: Set up QEMU
63-
uses: docker/setup-qemu-action@v3
58+
uses: docker/setup-qemu-action@v4
6459
- name: Set up Docker Buildx
65-
uses: docker/setup-buildx-action@v3
60+
uses: docker/setup-buildx-action@v4
6661
- name: Login to Docker Hub
67-
uses: docker/login-action@v3
62+
uses: docker/login-action@v4
6863
with:
6964
username: ${{ secrets.DOCKERHUB_USERNAME }}
7065
password: ${{ secrets.DOCKERHUB_PASSWORD }}
7166
- name: Build and push
72-
uses: docker/build-push-action@v6
67+
uses: docker/build-push-action@v7
7368
with:
7469
context: .
7570
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)